forked from dop251/goja
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REALMC-11689: add arrow functions, typed array fixes, more date-time …
…formats, ... (#47) * Fixed typed arrays' defineProperty and indexing. Fixes dop251#308. * Fix Proxy creation panicing on target not callable * Do not modify sb for variadic calls as it breaks local variables resolution. Instead place a marker on stack and use it to count the number of args. Fixes dop251#311. * Support patterns in catch clause. See dop251#305 * Fixed the handling of Symbol properties in destructuring assignments. Fixes dop251#312. * Ensure ToPropertyKey happens earlier when assigning computed keys. Fixes dop251#312. * Aligned detached buffer semantics with the latest specs. Fixes dop251#315. * More typed arrays fixes * Fixed accessor and property key function names. Fixes dop251#314. * Fixed possible panic when sorting non-standard arrays. * Added nil-safety checks for values returned by get*() methods * Fixed panics in parser on some invalid inputs. Fixes dop251#318. * Arrow function (dop251#319) * Implemented arrow functions. See dop251#304. * Define the name property for anonymous functions (including arrow functions) * Treat "arguments" as a lexical binding to match the latest specification * Allow arrow functions to contain 'use strict' for simple parameter lists. Fixes dop251#323. * Fixed argument variable reference resolution in stashless functions * Treat date-only formats as UTC and date-time as local timezone. Added support for additional datetime formats. Fixes dop251#281, fixes dop251#292. * Use correct createArgsRest variant when arguments are not in stash. Fixes dop251#327 * Fixed formatting for go 1.17 * Report 'length' as own property for Go slices. Fixes dop251#328.
- Loading branch information
Showing
46 changed files
with
1,999 additions
and
689 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
Oops, something went wrong.