| Index: src/contexts.h
|
| diff --git a/src/contexts.h b/src/contexts.h
|
| index d1c98bd9547dbed876079ee08d7ac017ec11d3ce..181efc9bf7c22f00749e29bddafceba345dc2d1d 100644
|
| --- a/src/contexts.h
|
| +++ b/src/contexts.h
|
| @@ -243,7 +243,8 @@ class Context: public FixedArray {
|
|
|
| GlobalObject* global() {
|
| Object* result = get(GLOBAL_INDEX);
|
| - ASSERT(IsBootstrappingOrGlobalObject(result));
|
| + ASSERT(Heap::gc_state() != Heap::NOT_IN_GC ||
|
| + IsBootstrappingOrGlobalObject(result));
|
| return reinterpret_cast<GlobalObject*>(result);
|
| }
|
| void set_global(GlobalObject* global) { set(GLOBAL_INDEX, global); }
|
|
|