Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 0540bc0c6825088a76d30d6bcc88a1a496b712ed..a67f937bd7a2c570a51c81a798e1397a2c3d70b6 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -6455,6 +6455,11 @@ class Script: public Struct { |
inline v8::ScriptOriginOptions origin_options(); |
inline void set_origin_options(ScriptOriginOptions origin_options); |
+ // [is_module]: determins whether the script is an ES2015 module. Encoded in |
vogelheim
2016/06/14 15:20:49
nitpick: determins -> determines.
mike3
2016/06/19 16:59:00
Acknowledged.
|
+ // the 'flags' field. |
+ inline bool is_module(); |
+ inline void set_is_module(bool value); |
+ |
DECLARE_CAST(Script) |
// If script source is an external string, check that the underlying |
@@ -6552,6 +6557,7 @@ class Script: public Struct { |
static const int kOriginOptionsSize = 3; |
static const int kOriginOptionsMask = ((1 << kOriginOptionsSize) - 1) |
<< kOriginOptionsShift; |
+ static const int kIsModuleBit = kOriginOptionsShift + kOriginOptionsSize; |
DISALLOW_IMPLICIT_CONSTRUCTORS(Script); |
}; |