summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/SharedContext.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-07-13 23:20:19 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:43 -0400
commitfe80b3d80d20241ff03338de4351d580796fd2c7 (patch)
tree169e4c59f59a972db0fd8d3d54780ec63406fae9 /js/src/frontend/SharedContext.h
parent7e510ee9b4dee7c2d15005baac89a2017f5673ef (diff)
downloadUXP-fe80b3d80d20241ff03338de4351d580796fd2c7.tar
UXP-fe80b3d80d20241ff03338de4351d580796fd2c7.tar.gz
UXP-fe80b3d80d20241ff03338de4351d580796fd2c7.tar.lz
UXP-fe80b3d80d20241ff03338de4351d580796fd2c7.tar.xz
UXP-fe80b3d80d20241ff03338de4351d580796fd2c7.zip
1357506 - Remove assert that constructorBox can only be set once when 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.
Diffstat (limited to 'js/src/frontend/SharedContext.h')
-rw-r--r--js/src/frontend/SharedContext.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/js/src/frontend/SharedContext.h b/js/src/frontend/SharedContext.h
index 3499a53fb..013444690 100644
--- a/js/src/frontend/SharedContext.h
+++ b/js/src/frontend/SharedContext.h
@@ -503,7 +503,6 @@ class FunctionBox : public ObjectBox, public SharedContext
void initFromLazyFunction();
void initStandaloneFunction(Scope* enclosingScope);
void initWithEnclosingParseContext(ParseContext* enclosing, FunctionSyntaxKind kind);
- void resetForAbortedSyntaxParse(ParseContext* enclosing, FunctionSyntaxKind kind);
ObjectBox* toObjectBox() override { return this; }
JSFunction* function() const { return &object->as<JSFunction>(); }