-
commit-queue@webkit.org authored
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. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161538 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6b63e87a