summaryrefslogtreecommitdiffstats
path: root/js/src/jsfun.cpp
Commit message (Collapse)AuthorAgeLines
* 1367204 - Generate "[sourceless code]" for class constructors when ↵Gaming4JC2019-07-18-5/+14
| | | | sourceIsLazy and no source hook is set.
* 1359622 - Fix assert for calling Function.toString on class constructors ↵Gaming4JC2019-07-18-2/+4
| | | | when the compartment has had source discarded.
* 1216630 - Rename preludeStart and postludeEnd to toStringStart and ↵Gaming4JC2019-07-18-1/+2
| | | | toStringEnd and misc fixes.
* 1216630 - Print class source when calling toString on the constructor.Gaming4JC2019-07-18-22/+19
| | | | | | | | | | 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.
* 1317387: The intrinsic %ThrowTypeError% function should be frozen.Gaming4JC2019-07-18-0/+22
|
* 1320408 - Part 14: Change some GlobalObject methods to static method.Gaming4JC2019-07-18-1/+1
|
* 1320408 - Part 12: Change JSScript::sourceData to static method.Gaming4JC2019-07-18-1/+1
|
* 1320408 - Part 10: Change LazyScript::functionDelazifying to static method.Gaming4JC2019-07-18-1/+1
|
* 1320408 - Part 4: Change JSObject::getGroup to static method.Gaming4JC2019-07-18-1/+1
|
* 1320408 - Part 3: Remove JSContext* parameter from ↵Gaming4JC2019-07-18-4/+2
| | | | JSFunction::getBoundFunctionArgument.
* 1320408 - Part 2: Change JSFunction::getOrCreateScript to static method.Gaming4JC2019-07-18-2/+2
|
* 1320408 - Part 1: Change JSFunction::getLength and ↵Gaming4JC2019-07-18-15/+14
| | | | JSFunction::getUnresolvedLength to static method.
* 1325606 - Return wrapped async function from caller property.Gaming4JC2019-07-18-0/+4
|
* 1325473 - A TypeError should be thrown when accessing 'arguments' or ↵Gaming4JC2019-07-18-2/+11
| | | | 'caller' on any of the new function types.
* 1320403 - Move JSFunction::EXPR_BODY to JSScript, LazyScript, and FunctionBox.Gaming4JC2019-07-18-2/+0
|
* 1317090: Remove js::FindBody;Gaming4JC2019-07-18-70/+0
|
* Merge branch 'master' into 816wolfbeast2019-04-05-51/+17
|\
| * Check for dead wrappers in CallerGetterImpl/CallerSetterImpl.wolfbeast2019-03-22-46/+12
| | | | | | | | | | This also removes code duplication by making CallerSetterImpl call CallerGetterImpl.
| * Align `instanceof` with the final ES6 spec.wolfbeast2019-02-07-5/+5
| |
* | Stage 1-2: Remove a space after comma in parameter list for generatedwolfbeast2019-02-02-1/+1
| | | | | | | | function source.
* | Stage 1-1: Implement Function.prototype.toString revision proposal.wolfbeast2019-02-02-31/+59
|/ | | | Tag #960
* Part 1: Implement ES6 function name property semanticsjanekptacijarabaci2018-03-19-17/+92
| | | | Issue #78
* Bug 1317309: Throw a TypeError when passing a Symbol value to ToAtomjanekptacijarabaci2018-03-19-3/+9
| | | | | | Issue #78 [Depends on] Bug 883377: Implement ES6 function "name" property semantics
* Bug 1320388: Move JSFunction::HAS_REST to JSScript and LazyScriptjanekptacijarabaci2018-03-19-3/+2
| | | | | | 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-203/+61
|
* Bug 1318017: Call GetPrototypeFromConstructor for generator/async function ↵janekptacijarabaci2018-03-16-11/+39
| | | | | | | and Intl constructors [Depends on] Bug 755821: Function() should use the parser's argument parsing code
* Make XDR decoding more robust.wolfbeast2018-02-08-0/+4
|
* Add m-esr52 at 52.6.0Matt A. Tobin2018-02-02-0/+2380