Index: test/debugger/debug/es8/async-function-debug-evaluate.js |
diff --git a/test/debugger/debug/es8/async-function-debug-evaluate.js b/test/debugger/debug/es8/async-function-debug-evaluate.js |
index c1fe532231558821a768a2da140fd19d22abb877..a635482f51e18cd90c7df2eac84c46022feadede 100644 |
--- a/test/debugger/debug/es8/async-function-debug-evaluate.js |
+++ b/test/debugger/debug/es8/async-function-debug-evaluate.js |
@@ -1,8 +1,6 @@ |
// Copyright 2016 the V8 project authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
- |
-// Flags: --noalways-opt |
var Debug = debug.Debug; |
var breakPointCount = 0; |
@@ -14,9 +12,10 @@ |
if (breakPointCount === 1) { |
assertEquals( |
"inner", exec_state.frame(0).evaluate("inner").value()); |
- // Variables in TDZ have 'undefined' as their values. |
- assertEquals(undefined, exec_state.frame(0).evaluate("letInner").value()); |
- assertEquals(undefined, exec_state.frame(0).evaluate("constInner").value()); |
+ assertThrows(() => exec_state.frame(0).evaluate("letInner").value(), |
+ ReferenceError); |
+ assertThrows(() => exec_state.frame(0).evaluate("constInner").value(), |
+ ReferenceError); |
assertEquals("outer", exec_state.frame(0).evaluate("outer").value()); |
assertEquals( |
@@ -30,15 +29,16 @@ |
assertEquals( |
"let outer", exec_state.frame(1).evaluate("letOuter").value()); |
- // Variables in TDZ have 'undefined' as their values. |
- assertEquals(undefined, exec_state.frame(0).evaluate("withVar").value()); |
+ assertThrows(() => exec_state.frame(0).evaluate("withVar").value(), |
+ ReferenceError); |
} else if (breakPointCount === 2) { |
assertEquals( |
"inner", exec_state.frame(0).evaluate("inner").value()); |
- // Variables in TDZ have 'undefined' as their values. |
- assertEquals(undefined, exec_state.frame(0).evaluate("letInner").value()); |
- assertEquals(undefined, exec_state.frame(0).evaluate("constInner").value()); |
+ assertThrows(() => exec_state.frame(0).evaluate("letInner").value(), |
+ ReferenceError); |
+ assertThrows(() => exec_state.frame(0).evaluate("constInner").value(), |
+ ReferenceError); |
assertEquals(57, exec_state.frame(0).evaluate("x").value()); |
assertEquals(100, exec_state.frame(0).evaluate("y").value()); |
@@ -70,8 +70,8 @@ |
"Error", |
exec_state.frame(0).evaluate("error.constructor.name").value()); |
assertEquals("floof", exec_state.frame(0).evaluate("bun").value()); |
- // Variables in TDZ have 'undefined' as their values. |
- assertEquals(undefined, exec_state.frame(0).evaluate("cow").value()) |
+ assertThrows(() => exec_state.frame(0).evaluate("cow").value(), |
+ ReferenceError); |
assertEquals("outer", exec_state.frame(0).evaluate("outer").value()); |
assertEquals( |