[ES] Add support finally to Promise
authorgskachkov@gmail.com <gskachkov@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jul 2017 02:38:41 +0000 (02:38 +0000)
committergskachkov@gmail.com <gskachkov@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jul 2017 02:38:41 +0000 (02:38 +0000)
commit7fa12e23ce2c5c0c65c2c36b2340ace8d5362437
tree34495f30289d77c3607650db65ab2e1fa5e7135c
parent8eb0a24249855165c8e5a159211409616009f46c
[ES] Add support finally to Promise
https://bugs.webkit.org/show_bug.cgi?id=174503

Reviewed by Yusuke Suzuki.

Source/JavaScriptCore:

Add support `finally` method to Promise according
to the https://bugs.webkit.org/show_bug.cgi?id=174503
Current spec on STAGE 3
https://github.com/tc39/proposal-promise-finally

* builtins/PromisePrototype.js:
(finally):
(const.valueThunk):
(globalPrivate.getThenFinally):
(const.thrower):
(globalPrivate.getCatchFinally):
* runtime/JSPromisePrototype.cpp:

LayoutTests:

* js/Promise-types-expected.txt:
* js/script-tests/Promise-types.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@219989 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSTests/stress/promise-finally.js [new file with mode: 0644]
LayoutTests/ChangeLog
LayoutTests/js/Promise-types-expected.txt
LayoutTests/js/script-tests/Promise-types.js
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/builtins/PromisePrototype.js
Source/JavaScriptCore/runtime/JSPromisePrototype.cpp