Skip to content

Commit

Permalink
1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
twada committed Jun 3, 2017
1 parent 9ba58da commit b833738
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions build/empower.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* author: Takuto Wada <[email protected]>
* contributors: James Talmage
* homepage: https://github.com/power-assert-js/empower
* version: 1.2.1
* version: 1.2.2
*
* call-signature:
* license: MIT (http://opensource.org/licenses/MIT)
Expand All @@ -20,15 +20,15 @@
* license: MIT (http://opensource.org/licenses/MIT)
* maintainers: zloirock <[email protected]>
* homepage: https://github.com/zloirock/core-js#readme
* version: 2.4.0
* version: 2.4.1
*
* empower-core:
* license: MIT (http://opensource.org/licenses/MIT)
* author: Takuto Wada <[email protected]>
* maintainers: twada <[email protected]>
* contributors: James Talmage
* homepage: http://github.com/twada/empower-core
* version: 0.6.1
* version: 0.6.2
*
* This header is generated by licensify (https://github.com/twada/licensify)
*/
Expand All @@ -38,7 +38,7 @@
*
* https://github.com/power-assert-js/empower
*
* Copyright (c) 2013-2016 Takuto Wada
* Copyright (c) 2013-2017 Takuto Wada
* Licensed under the MIT license.
* https://github.com/power-assert-js/empower/blob/master/MIT-LICENSE.txt
*/
Expand Down Expand Up @@ -68,7 +68,7 @@ function empower (assert, formatter, options) {
},
onError: function (errorEvent) {
var e = errorEvent.error;
if (e.name !== 'AssertionError') {
if (!/^AssertionError/.test(e.name)) {
throw e;
}
if (!errorEvent.powerAssertContext) {
Expand Down Expand Up @@ -599,6 +599,7 @@ var createDict = function(){
// Thrash, waste and sodomy: IE GC bug
var iframe = _dereq_('./_dom-create')('iframe')
, i = enumBugKeys.length
, lt = '<'
, gt = '>'
, iframeDocument;
iframe.style.display = 'none';
Expand All @@ -608,7 +609,7 @@ var createDict = function(){
// html.removeChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write('<script>document.F=Object</script' + gt);
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
iframeDocument.close();
createDict = iframeDocument.F;
while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];
Expand All @@ -626,6 +627,7 @@ module.exports = Object.create || function create(O, Properties){
} else result = createDict();
return Properties === undefined ? result : dPs(result, Properties);
};

},{"./_an-object":15,"./_dom-create":25,"./_enum-bug-keys":26,"./_html":32,"./_object-dps":40,"./_shared-key":47}],39:[function(_dereq_,module,exports){
var anObject = _dereq_('./_an-object')
, IE8_DOM_DEFINE = _dereq_('./_ie8-dom-define')
Expand Down Expand Up @@ -868,7 +870,7 @@ _dereq_('./_object-sap')('keys', function(){
*
* https://github.com/twada/empower-core
*
* Copyright (c) 2013-2016 Takuto Wada
* Copyright (c) 2013-2017 Takuto Wada
* Licensed under the MIT license.
* https://github.com/twada/empower-core/blob/master/MIT-LICENSE.txt
*/
Expand Down Expand Up @@ -1205,7 +1207,7 @@ module.exports = function defaultOptions () {

function onError (errorEvent) {
var e = errorEvent.error;
if (errorEvent.powerAssertContext && e.name === 'AssertionError') {
if (errorEvent.powerAssertContext && /^AssertionError/.test(e.name)) {
e.powerAssertContext = errorEvent.powerAssertContext;
}
throw e;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "empower",
"description": "Power Assert feature enhancer for assert function/object",
"version": "1.2.1",
"version": "1.2.2",
"author": {
"name": "Takuto Wada",
"email": "[email protected]",
Expand Down

0 comments on commit b833738

Please sign in to comment.