Skip to content

Commit

Permalink
Add JSGenerator.unstable_exports (#209)
Browse files Browse the repository at this point in the history
Co-authored-by: Muffin <[email protected]>
  • Loading branch information
AshimeeAlt and GarboMuffin authored May 9, 2024
1 parent 5d30745 commit 6d94ef1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/compiler/jsgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,26 @@ class JSGenerator {
}
}

// For extensions.
JSGenerator.unstable_exports = {
TYPE_NUMBER,
TYPE_STRING,
TYPE_BOOLEAN,
TYPE_UNKNOWN,
TYPE_NUMBER_NAN,
factoryNameVariablePool,
functionNameVariablePool,
generatorNameVariablePool,
VariablePool,
PEN_EXT,
PEN_STATE,
TypedInput,
ConstantInput,
VariableInput,
Frame,
sanitize
};

// Test hook used by automated snapshot testing.
JSGenerator.testingApparatus = null;

Expand Down

0 comments on commit 6d94ef1

Please sign in to comment.