forked from dop251/goja
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Array.prototype.flat(Map) with some basic tests (dop251#240)
* Implement Array.prototype.flat(Map) with some basic tests * Apply suggestions from code review Co-authored-by: Dmitry Panov <[email protected]> * Add flat/flatMap to unscopables * Don't call the map function on the already mapped elements This is exactly as the specification says it needs to be ... but I either glossed over it or fixed it because of how I understood it should work :( * Check for property existance as string This is so https://github.com/tc39/test262/blob/42bf3a9f7aed3790dc1d829f290dee033df41c5b/test/built-ins/Array/prototype/flat/proxy-access-count.js passes and also because this is what the spec says * Update builtin_array.go Co-authored-by: Dmitry Panov <[email protected]> Co-authored-by: Dmitry Panov <[email protected]>
- Loading branch information
Showing
2 changed files
with
89 additions
and
0 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