Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
test262
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pmaksimo
test262
Commits
5b06fab0
Commit
5b06fab0
authored
9 years ago
by
Leo Balter
Browse files
Options
Downloads
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/language/statements/debugger/expression.js
+10
-0
10 additions, 0 deletions
test/language/statements/debugger/expression.js
test/language/statements/debugger/statement.js
+12
-0
12 additions, 0 deletions
test/language/statements/debugger/statement.js
with
22 additions
and
0 deletions
test/language/statements/debugger/expression.js
0 → 100644
+
10
−
0
View file @
5b06fab0
// 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
);
This diff is collapsed.
Click to expand it.
test/language/statements/debugger/statement.js
0 → 100644
+
12
−
0
View file @
5b06fab0
// 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
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment