Skip to content

Commit

Permalink
reduce max used values for flags to prevent smi overflows
Browse files Browse the repository at this point in the history
  • Loading branch information
vladima committed Jun 9, 2016
1 parent ede7692 commit 5fe6bd4
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 5fe6bd4

Please sign in to comment.