Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index e52dde37c994fea3d04b3444bb5cc8a6cf8d0836..36ce60b5ba648c3c8992a378cbc831e2fe5b1922 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -12056,7 +12056,7 @@ static v8::Handle<Value> ThrowInJSNoCatch(const v8::Arguments& args) { |
v8::HandleScope scope(args.GetIsolate()); |
v8::Handle<Value> value = CompileRun(code); |
CHECK(value.IsEmpty()); |
- return v8_str("foo"); |
+ return scope.Close(v8_str("foo")); |
} |
} |