Skip to content
Snippets Groups Projects
Commit 5b06fab0 authored by Leo Balter's avatar Leo Balter
Browse files

Merge pull request #531 from bocoup/debugger

Add tests for `debugger` statement
parents 86ff4677 4f5a8674
No related branches found
No related tags found
No related merge requests found
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: The `debugger` token may not occupy an expression position
esid: sec-debugger-statement
es6id: 13.16
negative: SyntaxError
---*/
(debugger);
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: The `debugger` token may occupy a statement position
esid: sec-debugger-statement
es6id: 13.16
---*/
// Expressing within a `while` statement ensures that the `debugger keyword is
// not erroneously interpreted as a declaration. It also avoids statement
// evaluation, which is host-defined an may interrupt test execution.
while (false) debugger;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment