-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
@@ -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) | ||
*/ | ||
|
@@ -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 | ||
*/ | ||
|
@@ -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) { | ||
|
@@ -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'; | ||
|
@@ -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]]; | ||
|
@@ -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') | ||
|
@@ -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 | ||
*/ | ||
|
@@ -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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]", | ||
|