summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/SyntaxParseHandler.h
Commit message (Collapse)AuthorAgeLines
* 1216630 - Print class source when calling toString on the constructor.Gaming4JC2019-07-18-1/+1
| | | | | | | | | | 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.
* 1339963 - Part 1: Split Parser::exportDeclaration.Gaming4JC2019-07-18-0/+14
|
* 1317375 - Implement "Template Literals Revision / Lifting Template Literal ↵Gaming4JC2019-07-18-0/+1
| | | | Restriction" ECMAScript proposal
* 1315815 - Don't treat async or await as a keyword when they contain escapes.Gaming4JC2019-07-18-14/+15
|
* Move the Parser::checkFunctionDefinition call into its callers.wolfbeast2019-04-06-1/+4
|
* Specify an explicit offset when warning about "use asm" found in thewolfbeast2019-04-05-1/+1
| | | | directive prologue of a script (rather than a function body).
* Part 1: Implement ES6 function name property semanticsjanekptacijarabaci2018-03-19-0/+3
| | | | Issue #78
* Add m-esr52 at 52.6.0Matt A. Tobin2018-02-02-0/+599