Commit graph

10 commits

Author SHA1 Message Date
Gaming4JC
85350c0655 1339395 - Part 2: Add parser support for rest and spread object properties. 2019-07-22 19:52:35 +08:00
Gaming4JC
51183e0be2 1303703 - Part 3: Syntax parse destructuring assignment patterns. 2019-07-22 19:52:16 +08:00
Gaming4JC
f79ee2fd83 1216630 - Print class source when calling toString on the constructor.
This is accomplished in the following ways.
LazyScripts and JSScripts now have 4 offsets:
- Source begin and end for the actual source. This is used for lazy parsing.

- toString begin and end for toString. Some kinds of functions, like async, only have a different begin offset. Class constructors have different offsets for both begin and end.

For syntactically present (i.e. non-default) constructors, the class source span is remembered directly on the LazyScript or JSScript. The toString implementation then splices out the substring directly. For default constructors, a new SRC_CLASS SrcNote type is added. It's binary and has as its arguments the begin and end offsets of the class expression or statement. MakeDefaultConstructor reads the note and overrides the cloned self-hosted function's source object. This is probably the least intrusive way to accomplish this.
2019-07-22 19:51:38 +08:00
Gaming4JC
942760e3c4 1339963 - Part 1: Split Parser::exportDeclaration. 2019-07-22 19:51:08 +08:00
Gaming4JC
ee1e2aba19 1317375 - Implement "Template Literals Revision / Lifting Template Literal Restriction" ECMAScript proposal 2019-07-22 19:47:00 +08:00
Gaming4JC
578e96b2cc 1315815 - Don't treat async or await as a keyword when they contain escapes. 2019-07-22 19:45:53 +08:00
wolfbeast
da1cb60dc3 Move the Parser::checkFunctionDefinition call into its callers. 2019-04-13 07:01:23 +08:00
wolfbeast
1f00dc49d4 Specify an explicit offset when warning about "use asm" found in the
directive prologue of a script (rather than a function body).
2019-04-13 07:01:16 +08:00
janekptacijarabaci
748c69d7fd Part 1: Implement ES6 function name property semantics
Issue #78
2019-02-15 23:38:44 +08:00
Roy Tam
dcd9973243 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00