summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/SharedContext.h
Commit message (Collapse)AuthorAgeLines
* 1357506 - Remove assert that constructorBox can only be set once when ↵Gaming4JC2019-07-18-1/+0
| | | | | | | parsing classes. Both asm.js and syntax parsing can abort and rewind parsing of an inner function. The bookkeeping to make sure that a class's constructor FunctionBox is only set once is not worth it -- duplicate constructor definitions already throw an early error.
* 1216630 - Rename preludeStart and postludeEnd to toStringStart and ↵Gaming4JC2019-07-18-6/+6
| | | | toStringEnd and misc fixes.
* 1216630 - Print class source when calling toString on the constructor.Gaming4JC2019-07-18-0/+11
| | | | | | | | | | 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.
* 1320403 - Move JSFunction::EXPR_BODY to JSScript, LazyScript, and FunctionBox.Gaming4JC2019-07-18-0/+8
|
* Stage 1-1: Implement Function.prototype.toString revision proposal.wolfbeast2019-02-02-2/+3
| | | | Tag #960
* Bug 1320388: Move JSFunction::HAS_REST to JSScript and LazyScriptjanekptacijarabaci2018-03-19-1/+7
| | | | | | Issue #78 [Depends on] Bug 883377: Implement ES6 function "name" property semantics
* Add m-esr52 at 52.6.0Matt A. Tobin2018-02-02-0/+639