Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index e48e9cec55fa254966a286ccb9180d10eeee441d..ad335ae72abe2ecbefb426881eedc85181b2a20d 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -12230,14 +12230,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugEvaluateGlobal) { |
if (additional_context->IsJSObject()) { |
// Create a function context first, than put 'with' context on top of it. |
Kevin Millikin (Chromium)
2011/11/10 12:55:21
This comment is wrong.
Steven
2011/11/11 08:35:04
Done.
|
- Handle<JSFunction> go_between = isolate->factory()->NewFunction( |
- isolate->factory()->empty_string(), |
- isolate->factory()->undefined_value()); |
- go_between->set_context(*context); |
- context = |
- isolate->factory()->NewFunctionContext( |
- Context::MIN_CONTEXT_SLOTS, go_between); |
- context->set_extension(JSObject::cast(*additional_context)); |
+ context = isolate->factory()->NewWithContext( |
+ Handle<JSFunction>(context->closure()), |
+ context, |
+ Handle<JSObject>::cast(additional_context)); |
is_global = false; |
} |