Chromium Code Reviews| Index: src/execution.cc |
| diff --git a/src/execution.cc b/src/execution.cc |
| index ac848e15a9dacb9cd1fcb7c8a3c6c6a67de9bf96..bef01a2a91ca47331eb7ff7236795cf12cd658b0 100644 |
| --- a/src/execution.cc |
| +++ b/src/execution.cc |
| @@ -77,6 +77,7 @@ static Handle<Object> Invoke(bool is_construct, |
| // Entering JavaScript. |
| VMState<JS> state(isolate); |
| + CHECK(AllowJavascriptExecution::IsAllowed(isolate)); |
| // Placeholder for return value. |
| MaybeObject* value = reinterpret_cast<Object*>(kZapValue); |