Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 71cf9dd16eb75019993d6461447ddbbdfbef7732..1c8ef5878a51ce8f8ebe16209ea4330afad4f501 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -3446,6 +3446,7 @@ i::Scope* DeserializeFunctionScope(i::Isolate* isolate, i::Zone* zone, |
} // namespace |
TEST(AsmModuleFlag) { |
+ i::FLAG_validate_asm = false; |
i::Isolate* isolate = CcTest::i_isolate(); |
i::HandleScope scope(isolate); |
LocalContext env; |
@@ -3453,8 +3454,7 @@ TEST(AsmModuleFlag) { |
const char* src = |
"function m() {" |
" 'use asm';" |
- " var x = 0;" |
- " function f() { return x };" |
+ " function f() { return 0 };" |
" return { f:f };" |
"}" |
"m();"; |