Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index 1ff58572f3f266f9f0b1c17901ca680da33c9152..73b1277260b40d89b5abcd9412b159211b226a87 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -151,6 +151,10 @@ class ParseInfo { |
context_ = Handle<Context>(*context_); |
} |
+#ifdef DEBUG |
+ bool script_is_native() { return script_->type() == Script::TYPE_NATIVE; } |
+#endif // DEBUG |
+ |
private: |
// Various configuration flags for parsing. |
enum Flag { |