Index: src/liveedit.cc |
diff --git a/src/liveedit.cc b/src/liveedit.cc |
index b6cc124ab11d018c4798ba1c4abd371f598360b1..c03d8d3e938f98da66c56d484e88d88ef97ce2ad 100644 |
--- a/src/liveedit.cc |
+++ b/src/liveedit.cc |
@@ -1222,6 +1222,7 @@ void LiveEdit::SetFunctionScript(Handle<JSValue> function_wrapper, |
UnwrapSharedFunctionInfoFromJSValue(function_wrapper); |
CHECK(script_handle->IsScript() || script_handle->IsUndefined()); |
shared_info->set_script(*script_handle); |
+ shared_info->DisableOptimization(kLiveEdit); |
function_wrapper->GetIsolate()->compilation_cache()->Remove(shared_info); |
} |