-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detecting a Promise bug in v8 (node 0.11 and 0.12).
v8 bug: https://code.google.com/p/chromium/issues/detail?id=371021 examples: https://gist.github.com/getify/bd11ccf1eff2efdac0fb The test isn't currently a failing test, because the v8 Promise implementation doesn't support subclassing, which we already detect - but this way we'll explicitly detect both bugs.
- Loading branch information
Showing
4 changed files
with
23 additions
and
2 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
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* This file is for testing implementation regressions of Promises. */ | ||
|
||
describe('Promise', function () { | ||
it('ignores non-function .then arguments', function () { | ||
expect(function () { | ||
Promise.reject(42).then(null,5).then(null, function () {}); | ||
}).not.to.throw(); | ||
}); | ||
}); | ||
|
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