Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index eaae6f7178a3cccb2da1dbcd3a7ec8dd319a3e81..2e82d4ebbb3f797daae8d5dab9cb1c9f3388f4a3 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -77,6 +77,8 @@ class FunctionEntry BASE_EMBEDDED { |
int literal_count() { return backing_[kLiteralCountOffset]; } |
int property_count() { return backing_[kPropertyCountOffset]; } |
StrictModeFlag strict_mode_flag() { |
+ ASSERT(backing_[kStrictModeOffset] == kStrictMode || |
+ backing_[kStrictModeOffset] == kNonStrictMode); |
return static_cast<StrictModeFlag>(backing_[kStrictModeOffset]); |
} |