| Index: test/cctest/test-func-name-inference.cc
|
| diff --git a/test/cctest/test-func-name-inference.cc b/test/cctest/test-func-name-inference.cc
|
| index 9d6349dbbfd9fa4ad7a97dee01be7cb604739821..4b16c031d9bceb7cc058b8b872e2775f74f1fb0e 100644
|
| --- a/test/cctest/test-func-name-inference.cc
|
| +++ b/test/cctest/test-func-name-inference.cc
|
| @@ -287,7 +287,8 @@ TEST(MultipleFuncsConditional) {
|
| v8::HandleScope scope(CcTest::isolate());
|
|
|
| v8::Local<v8::Script> script = Compile(CcTest::isolate(),
|
| - "fun1 = 0 ?\n"
|
| + "var x = 0;\n"
|
| + "fun1 = x ?\n"
|
| " function() { return 1; } :\n"
|
| " function() { return 2; }");
|
| CheckFunctionName(script, "return 1", "fun1");
|
| @@ -301,9 +302,10 @@ TEST(MultipleFuncsInLiteral) {
|
|
|
| v8::Local<v8::Script> script =
|
| Compile(CcTest::isolate(),
|
| + "var x = 0;\n"
|
| "function MyClass() {}\n"
|
| "MyClass.prototype = {\n"
|
| - " method1: 0 ? function() { return 1; } :\n"
|
| + " method1: x ? function() { return 1; } :\n"
|
| " function() { return 2; } }");
|
| CheckFunctionName(script, "return 1", "MyClass.method1");
|
| CheckFunctionName(script, "return 2", "MyClass.method1");
|
|
|