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 762cc9f0fab1eae4406914222112edb8ef3855eb..a6ccc0991b45ba06e47ee72da6043b5be57bdf39 100644 |
--- a/test/cctest/test-func-name-inference.cc |
+++ b/test/cctest/test-func-name-inference.cc |
@@ -398,7 +398,9 @@ TEST(AssignmentAndCall) { |
// 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"); |
+ // TODO(2276): Lazy compiling the enclosing outer closure would yield |
+ // in "Enclosing.Bar" being the inferred name here. |
+ CheckFunctionName(script, "return 2", "Bar"); |
} |