File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 1414 * - Extensions treat IR nodes received from descendSubstack and similar as
1515 * opaque objects.
1616 * - Extensions need to implement the JS generators for all AST node kinds
17- * they use. Can not rely on the defualt JS generator.
17+ * they use. Can not rely on the default JS generator.
1818 */
1919
2020const { InputOpcode, InputType} = require ( './enums' ) ;
2121// eslint-disable-next-line no-unused-vars
2222const { IntermediateInput, IntermediateStackBlock, IntermediateStack} = require ( './intermediate' ) ;
2323
2424class IRGeneratorStub {
25-
25+ // Doesn't seem like extensions override anything, though the class may
26+ // still need to exist to avoid type errors.
2627}
2728
2829class ScriptTreeGeneratorStub {
@@ -257,7 +258,7 @@ class JSGeneratorStub {
257258 real . source = newSource ;
258259 } ,
259260
260- localVariables : real . localVariables ,
261+ localVariables : new VariablePool ( 'oldCompilerLocal' ) ,
261262
262263 /**
263264 * @param {IntermediateInput } intermediate
@@ -332,17 +333,9 @@ JSGeneratorStub.unstable_exports = {
332333 TYPE_BOOLEAN ,
333334 TYPE_UNKNOWN ,
334335 TYPE_NUMBER_NAN ,
335- // factoryNameVariablePool,
336- // functionNameVariablePool,
337- // generatorNameVariablePool,
338336 VariablePool,
339- // PEN_EXT,
340- // PEN_STATE,
341337 TypedInput,
342- // ConstantInput,
343- // VariableInput,
344338 Frame
345- // sanitize
346339} ;
347340
348341const oldCompilerCompatibility = {
You can’t perform that action at this time.
0 commit comments