| Index: test/cctest/test-decls.cc
|
| diff --git a/test/cctest/test-decls.cc b/test/cctest/test-decls.cc
|
| index 7a826c2476c599a8a8b2b504b7430c76d955d141..c900fac25606fc8e8e80ee383af41cb8dbec98f3 100644
|
| --- a/test/cctest/test-decls.cc
|
| +++ b/test/cctest/test-decls.cc
|
| @@ -652,6 +652,17 @@ TEST(CrossScriptReferencesHarmony) {
|
| v8::Isolate* isolate = CcTest::isolate();
|
| HandleScope scope(isolate);
|
|
|
| + // TODO(rossberg): Reparsing of top-level code does not work in the presence
|
| + // of harmony scoping and multiple scripts. This can already be reproduced
|
| + // without --always-opt by relying on OSR alone.
|
| + //
|
| + // ./d8 --harmony-scoping
|
| + // -e "'use strict'; let a = 1;"
|
| + // -e "'use strict'; let b = 2; for (var i = 0; i < 100000; ++i) b++;"
|
| + //
|
| + // For now we just disable --always-opt for this test.
|
| + i::FLAG_always_opt = false;
|
| +
|
| const char* decs[] = {
|
| "var x = 1; x", "x", "this.x",
|
| "function x() { return 1 }; x()", "x()", "this.x()",
|
|
|