diff options
Diffstat (limited to 'deps/v8/test/cctest/test-func-name-inference.cc')
-rw-r--r-- | deps/v8/test/cctest/test-func-name-inference.cc | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/deps/v8/test/cctest/test-func-name-inference.cc b/deps/v8/test/cctest/test-func-name-inference.cc index 762cc9f0fa..8f405b726e 100644 --- a/deps/v8/test/cctest/test-func-name-inference.cc +++ b/deps/v8/test/cctest/test-func-name-inference.cc @@ -400,41 +400,3 @@ TEST(AssignmentAndCall) { // See MultipleAssignments test. CheckFunctionName(script, "return 2", "Enclosing.Bar"); } - - -TEST(MethodAssignmentInAnonymousFunctionCall) { - InitializeVM(); - v8::HandleScope scope; - - v8::Handle<v8::Script> script = Compile( - "(function () {\n" - " var EventSource = function () { };\n" - " EventSource.prototype.addListener = function () {\n" - " return 2012;\n" - " };\n" - " this.PublicEventSource = EventSource;\n" - "})();"); - CheckFunctionName(script, "return 2012", "EventSource.addListener"); -} - - -TEST(ReturnAnonymousFunction) { - InitializeVM(); - v8::HandleScope scope; - - v8::Handle<v8::Script> script = Compile( - "(function() {\n" - " function wrapCode() {\n" - " return function () {\n" - " return 2012;\n" - " };\n" - " };\n" - " var foo = 10;\n" - " function f() {\n" - " return wrapCode();\n" - " }\n" - " this.ref = f;\n" - "})()"); - script->Run(); - CheckFunctionName(script, "return 2012", ""); -} |