Debian Codegraph @

js/src/tests/test262/language/statements/debugger/statement.js

raw
1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 description: The `debugger` token may occupy a statement position
5 esid: sec-debugger-statement
6 es6id: 13.16
7 ---*/
8
9 // Expressing within a `while` statement ensures that the `debugger keyword is
10 // not erroneously interpreted as a declaration. It also avoids statement
11 // evaluation, which is host-defined an may interrupt test execution.
12 while (false) debugger;
13
14 reportCompare(0, 0);