Commit 102ddf35 authored by dcarney's avatar dcarney Committed by Commit bot

disable some harmony scoping tests

R=verwaest@chromium.org

BUG=v8:3914
LOG=N

Review URL: https://codereview.chromium.org/914333002

Cr-Commit-Position: refs/heads/master@{#26794}
parent c1f8f727
......@@ -98,6 +98,11 @@
# TODO(jochen): Reenable after we removed the CHECK() from the marking queue.
'test-mark-compact/MarkingDeque': [SKIP],
# BUG(3914).
'test-decls/CrossScriptStaticLookupUndeclared': [SKIP],
'test-decls/CrossScriptReferencesHarmony': [SKIP],
'test-decls/CrossScriptReferencesHarmonyRegress': [SKIP],
############################################################################
# Slow tests.
'test-api/Threading1': [PASS, ['mode == debug', SLOW]],
......
......@@ -818,6 +818,26 @@ TEST(CrossScriptReferencesHarmony) {
}
TEST(CrossScriptReferencesHarmonyRegress) {
i::FLAG_harmony_scoping = true;
v8::Isolate* isolate = CcTest::isolate();
HandleScope scope(isolate);
SimpleContext context;
context.Check(
"'use strict';"
"function i1() { "
" let y = 10; return (typeof x2 === 'undefined' ? 0 : 2) + y"
"}"
"i1();"
"i1();",
EXPECT_RESULT, Number::New(isolate, 10));
context.Check(
"'use strict';"
"let x2 = 2; i1();",
EXPECT_RESULT, Number::New(isolate, 12));
}
TEST(GlobalLexicalOSR) {
i::FLAG_use_strict = true;
i::FLAG_harmony_scoping = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment