Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[JS] Should be able to create a promise by calling the Promise constr…
…uctor as a function https://bugs.webkit.org/show_bug.cgi?id=126561 Patch by Sam Weinig <sam@webkit.org> on 2014-01-08 Reviewed by Geoffrey Garen. Source/JavaScriptCore: * runtime/JSPromiseConstructor.cpp: (JSC::JSPromiseConstructor::getCallData): Add support for calling the Promise constructor as a function (e.g. var p = Promise(...), note the missing "new"). LayoutTests: * js/dom/Promise-types-expected.txt: * js/dom/Promise-types.html: Add test for using calling a Promise constructor as a function. Canonical link: https://commits.webkit.org/144563@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161538 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
33b733b
commit f2bb0c2774434c290989fe3cabe0c2b53a867a22
Showing
5 changed files
with
50 additions
and
4 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
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