Skip to content

Commit 2482076

Browse files
committed
Final clean up
1 parent 6596206 commit 2482076

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/compiler/old-compiler-compatibility.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@
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

2020
const {InputOpcode, InputType} = require('./enums');
2121
// eslint-disable-next-line no-unused-vars
2222
const {IntermediateInput, IntermediateStackBlock, IntermediateStack} = require('./intermediate');
2323

2424
class 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

2829
class 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

348341
const oldCompilerCompatibility = {

0 commit comments

Comments
 (0)