Skip to content

reduce max used values for flags to prevent smi overflows on 32 bit versions of node #9055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 9, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/compiler/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ namespace ts {
Default = 1 << 9, // Function/Class (export default declaration)
Const = 1 << 11, // Variable declaration

HasComputedFlags = 1 << 31, // Modifier flags have been computed
HasComputedFlags = 1 << 29, // Modifier flags have been computed

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

HasComputedFlags = 1 << 30, // Transform flags have been computed.
HasComputedFlags = 1 << 29, // Transform flags have been computed.

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