summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/test-func-name-inference.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/test-func-name-inference.cc')
-rw-r--r--deps/v8/test/cctest/test-func-name-inference.cc39
1 files changed, 0 insertions, 39 deletions
diff --git a/deps/v8/test/cctest/test-func-name-inference.cc b/deps/v8/test/cctest/test-func-name-inference.cc
index 8f405b726e..bfae4d1360 100644
--- a/deps/v8/test/cctest/test-func-name-inference.cc
+++ b/deps/v8/test/cctest/test-func-name-inference.cc
@@ -361,42 +361,3 @@ TEST(FactoryHashmapConditional) {
// Can't infer the function name statically.
CheckFunctionName(script, "return 1", "obj.(anonymous function)");
}
-
-
-TEST(GlobalAssignmentAndCall) {
- InitializeVM();
- v8::HandleScope scope;
-
- v8::Handle<v8::Script> script = Compile(
- "var Foo = function() {\n"
- " return 1;\n"
- "}();\n"
- "var Baz = Bar = function() {\n"
- " return 2;\n"
- "}");
- // The inferred name is empty, because this is an assignment of a result.
- CheckFunctionName(script, "return 1", "");
- // See MultipleAssignments test.
- CheckFunctionName(script, "return 2", "Bar");
-}
-
-
-TEST(AssignmentAndCall) {
- InitializeVM();
- v8::HandleScope scope;
-
- v8::Handle<v8::Script> script = Compile(
- "(function Enclosing() {\n"
- " var Foo;\n"
- " Foo = function() {\n"
- " return 1;\n"
- " }();\n"
- " var Baz = Bar = function() {\n"
- " return 2;\n"
- " }\n"
- "})();");
- // The inferred name is empty, because this is an assignment of a result.
- CheckFunctionName(script, "return 1", "");
- // See MultipleAssignments test.
- CheckFunctionName(script, "return 2", "Enclosing.Bar");
-}