summaryrefslogtreecommitdiff
path: root/deps/v8/src/scanner.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/scanner.h')
-rw-r--r--deps/v8/src/scanner.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/v8/src/scanner.h b/deps/v8/src/scanner.h
index 6651c38755..a2e64a9d20 100644
--- a/deps/v8/src/scanner.h
+++ b/deps/v8/src/scanner.h
@@ -41,6 +41,17 @@
namespace v8 {
namespace internal {
+
+// General collection of bit-flags that can be passed to scanners and
+// parsers to signify their (initial) mode of operation.
+enum ParsingFlags {
+ kNoParsingFlags = 0,
+ kAllowLazy = 1,
+ kAllowNativesSyntax = 2,
+ kHarmonyScoping = 4
+};
+
+
// Returns the value (0 .. 15) of a hexadecimal character c.
// If c is not a legal hexadecimal character, returns a value < 0.
inline int HexValue(uc32 c) {