summaryrefslogtreecommitdiffstats
path: root/js/src/jsscript.cpp
Commit message (Collapse)AuthorAgeLines
* 1216630 - Rename preludeStart and postludeEnd to toStringStart and ↵Gaming4JC2019-07-18-32/+39
| | | | toStringEnd and misc fixes.
* 1216630 - Print class source when calling toString on the constructor.Gaming4JC2019-07-18-5/+29
| | | | | | | | | | 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.
* 1320408 - Change JSScript::sourceDataWithPrelude to static methodGaming4JC2019-07-18-4/+4
| | | | UXP Interdiff
* 1320408 - Part 12: Change JSScript::sourceData to static method.Gaming4JC2019-07-18-4/+4
|
* 1320408 - Part 2: Change JSFunction::getOrCreateScript to static method.Gaming4JC2019-07-18-2/+2
|
* 1320403 - Move JSFunction::EXPR_BODY to JSScript, LazyScript, and FunctionBox.Gaming4JC2019-07-18-0/+9
|
* Stage 1-1: Implement Function.prototype.toString revision proposal.wolfbeast2019-02-02-12/+35
| | | | Tag #960
* Fix Value::isGCThing footgun, stop returning true for NullValuetrav902018-04-07-1/+1
|
* Bug 1332155 - Skip non-try-related trynotes when asserting jump targetsjanekptacijarabaci2018-03-25-1/+2
| | | | Issue #74
* Bug 1320388: Move JSFunction::HAS_REST to JSScript and LazyScriptjanekptacijarabaci2018-03-19-1/+10
| | | | | | Issue #78 [Depends on] Bug 883377: Implement ES6 function "name" property semantics
* Bug 755821: Function() should use the parser's argument parsing codejanekptacijarabaci2018-03-16-13/+14
|
* Make XDR decoding more robust.wolfbeast2018-02-08-18/+32
|
* Add m-esr52 at 52.6.0Matt A. Tobin2018-02-02-0/+4307