Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 41b5fa75fbb3d0bbfe971d54c26359d62ee5a60a..ac025aa4a6880a1b515ef078fdbd31b9ac9fe011 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -833,6 +833,10 @@ void Shell::AddHistogramSample(void* histogram, int sample) { |
void Shell::InstallUtilityScript(Isolate* isolate) { |
HandleScope scope(isolate); |
+ // TODO(rossberg): Utility scripts do not yet obey strong mode rules. |
+ bool use_strong = i::FLAG_use_strong; |
+ i::FLAG_use_strong = false; |
+ |
// If we use the utility context, we have to set the security tokens so that |
// utility, evaluation and debug context can all access each other. |
v8::Local<v8::Context> utility_context = |
@@ -882,6 +886,8 @@ void Shell::InstallUtilityScript(Isolate* isolate) { |
// Start the in-process debugger if requested. |
if (i::FLAG_debugger) v8::Debug::SetDebugEventListener(HandleDebugEvent); |
+ |
+ i::FLAG_use_strong = use_strong; |
} |
#endif // !V8_SHARED |