diff options
Diffstat (limited to 'deps/v8/src/contexts.h')
-rw-r--r-- | deps/v8/src/contexts.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/v8/src/contexts.h b/deps/v8/src/contexts.h index 1f88c946de..af5cb036c6 100644 --- a/deps/v8/src/contexts.h +++ b/deps/v8/src/contexts.h @@ -356,6 +356,10 @@ class Context: public FixedArray { Map* map = this->map(); return map == map->GetHeap()->block_context_map(); } + bool IsModuleContext() { + Map* map = this->map(); + return map == map->GetHeap()->module_context_map(); + } // Tells whether the global context is marked with out of memory. inline bool has_out_of_memory(); |