Skip to content

Commit d147eed

Browse files
committed
Merge pull request microsoft#9055 from Microsoft/shrink_flags
reduce max used values for flags to prevent smi overflows on 32 bit versions of node
2 parents ede7692 + 5fe6bd4 commit d147eed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ namespace ts {
439439
Default = 1 << 9, // Function/Class (export default declaration)
440440
Const = 1 << 11, // Variable declaration
441441

442-
HasComputedFlags = 1 << 31, // Modifier flags have been computed
442+
HasComputedFlags = 1 << 29, // Modifier flags have been computed
443443

444444
AccessibilityModifier = Public | Private | Protected,
445445
// Accessibility modifiers and 'readonly' can be attached to a parameter in a constructor to make it a property.
@@ -2980,7 +2980,7 @@ namespace ts {
29802980
ContainsBlockScopedBinding = 1 << 18,
29812981
ContainsBindingPattern = 1 << 19,
29822982

2983-
HasComputedFlags = 1 << 30, // Transform flags have been computed.
2983+
HasComputedFlags = 1 << 29, // Transform flags have been computed.
29842984

29852985
// Assertions
29862986
// - Bitmasks that are used to assert facts about the syntax of a node and its subtree.

0 commit comments

Comments
 (0)