Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 9eddbacd5a6a56d4e8cb6568195bf133c6db85e4..d065ada47a8d69753faafd52e70a2dccf82723d0 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -22860,32 +22860,6 @@ TEST(ScriptNameAndLineNumber) { |
} |
-Local<v8::Context> call_eval_context; |
-Local<v8::Function> call_eval_bound_function; |
-static void CallEval(const v8::FunctionCallbackInfo<v8::Value>& args) { |
- v8::Context::Scope scope(call_eval_context); |
- args.GetReturnValue().Set( |
- call_eval_bound_function->Call(call_eval_context->Global(), 0, NULL)); |
-} |
- |
- |
-TEST(CrossActivationEval) { |
- LocalContext env; |
- v8::Isolate* isolate = env->GetIsolate(); |
- v8::HandleScope scope(isolate); |
- { |
- call_eval_context = v8::Context::New(isolate); |
- v8::Context::Scope scope(call_eval_context); |
- call_eval_bound_function = |
- Local<Function>::Cast(CompileRun("eval.bind(this, '1')")); |
- } |
- env->Global()->Set(v8_str("CallEval"), |
- v8::FunctionTemplate::New(isolate, CallEval)->GetFunction()); |
- Local<Value> result = CompileRun("CallEval();"); |
- CHECK_EQ(result, v8::Integer::New(isolate, 1)); |
-} |
- |
- |
void SourceURLHelper(const char* source, const char* expected_source_url, |
const char* expected_source_mapping_url) { |
Local<Script> script = v8_compile(source); |