| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 06bd125127a11fdb6dcde79bb14f48cf5aacd356..0cd277987780699391008ed5947a2526a915a464 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -3161,7 +3161,9 @@ Genesis::Genesis(Isolate* isolate,
|
|
|
| // Check that the script context table is empty except for the 'this' binding.
|
| // We do not need script contexts for native scripts.
|
| - DCHECK_EQ(1, native_context()->script_context_table()->used());
|
| + if (!FLAG_global_var_shortcuts) {
|
| + DCHECK_EQ(1, native_context()->script_context_table()->used());
|
| + }
|
|
|
| result_ = native_context();
|
| }
|
|
|