Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 331d2d4dd6b3b65b2822132643a13bfb6af1873e..cf143127acade800d3cf13e9354bc581f1ba2ce0 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2182,7 +2182,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetCode) { |
Handle<JSFunction> fun = Handle<JSFunction>::cast(code); |
Handle<SharedFunctionInfo> shared(fun->shared()); |
- if (!JSFunction::CompileLazy(fun, KEEP_EXCEPTION)) { |
+ if (!SharedFunctionInfo::EnsureCompiled(shared, KEEP_EXCEPTION)) { |
return Failure::Exception(); |
} |
// Since we don't store the source for this we should never |