Index: src/globals.h |
diff --git a/src/globals.h b/src/globals.h |
index f85f286b38bf5dfbf0961dba271cc97fab98a6aa..f7cb84abecee7f05bf54ef9097423d04d0e45fd4 100644 |
--- a/src/globals.h |
+++ b/src/globals.h |
@@ -361,6 +361,13 @@ template <typename T, class P = FreeStoreAllocationPolicy> class List; |
// ----------------------------------------------------------------------------- |
// Declarations for use in both the preparser and the rest of V8. |
+enum LanguageMode { |
Rico
2011/11/15 08:25:07
could we add a few lines about the modes, what the
Steven
2011/11/15 13:33:30
Done.
|
+ CLASSIC_MODE, |
+ STRICT_MODE, |
+ EXTENDED_MODE |
+}; |
+ |
+ |
// The Strict Mode (ECMA-262 5th edition, 4.2.2). |
enum StrictModeFlag { |
kNonStrictMode, |