-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #4668 from rhuanjl:experiment This PR implements Promise.prototype.finally. Fixes #3520 Relevant ECMASpec: https://tc39.github.io/ecma262/#sec-promise.prototype.finally **Notes:** 1. I worked out how to do this by reading the code for Promise.prototype.catch and the internal AsyncSpawnExecutorFunction - there is a chance that some of what I've done isn't quite right though it does all seem to work. 2. I've run this against the relevant testcases from test262 and it passes them. 3. It probably could do with a few more CI tests - I added what seemed good to me based on what was there for other promise methods. 4. The large size of the diff is as I had to regenerate the bytecode for built in methods after adding the entry point for finally to JnDirectFields.h **cc:** @dilijev @ljharb Thanks to my friend @fatcerberus for running the RegenerateBytecode script for me.
- Loading branch information
Showing
20 changed files
with
4,512 additions
and
4,038 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
1,914 changes: 957 additions & 957 deletions
1,914
lib/Runtime/Library/InJavascript/Intl.js.bc.32b.h
100644 → 100755
Large diffs are not rendered by default.
Oops, something went wrong.
1,922 changes: 961 additions & 961 deletions
1,922
lib/Runtime/Library/InJavascript/Intl.js.bc.64b.h
100644 → 100755
Large diffs are not rendered by default.
Oops, something went wrong.
1,906 changes: 953 additions & 953 deletions
1,906
lib/Runtime/Library/InJavascript/Intl.js.nojit.bc.32b.h
100644 → 100755
Large diffs are not rendered by default.
Oops, something went wrong.
1,906 changes: 953 additions & 953 deletions
1,906
lib/Runtime/Library/InJavascript/Intl.js.nojit.bc.64b.h
100644 → 100755
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.