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
b0338941
Commit
b0338941
authored
7 years ago
by
Rick Waldron
Browse files
Options
Downloads
Patches
Plain Diff
INTERPRETING.md: Make negative phase values easier to read
parent
041da54c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
INTERPRETING.md
+42
-5
42 additions, 5 deletions
INTERPRETING.md
with
42 additions
and
5 deletions
INTERPRETING.md
+
42
−
5
View file @
b0338941
...
@@ -161,10 +161,11 @@ These tests are expected to generate an uncaught exception. The value of this
...
@@ -161,10 +161,11 @@ These tests are expected to generate an uncaught exception. The value of this
attribute is a YAML dictonary with two keys:
attribute is a YAML dictonary with two keys:
-
`phase`
- the stage of the test interpretation process that the error is
-
`phase`
- the stage of the test interpretation process that the error is
expected to be produced; either "parse" (meaning, "while parsing the source
expected to be produced; valid phases are:
text"), "early" (meaning, "prior to evaluation"), "resolution" (meaning,
-
`parse`
: occurs while parsing the source text.
"during ES2015 module resolution"), or "runtime" (meaning, "during
-
`early`
: occurs prior to evaluation.
evaluation")
-
`resolution`
: occurs during module resolution.
-
`runtime`
: occurs during evaluation.
-
`type`
- the name of the constructor of the expected error
-
`type`
- the name of the constructor of the expected error
If a test configured with the
`negative`
attribute completes without throwing
If a test configured with the
`negative`
attribute completes without throwing
...
@@ -172,7 +173,7 @@ an exception, or if the name of the thrown exception's constructor does not
...
@@ -172,7 +173,7 @@ an exception, or if the name of the thrown exception's constructor does not
match the specified constructor name, or if the error occurs at a phase that
match the specified constructor name, or if the error occurs at a phase that
differs from the indicated phase, the test must be interpreted as "failing."
differs from the indicated phase, the test must be interpreted as "failing."
*Example:*
*Example
s
:*
```
js
```
js
/*---
/*---
...
@@ -183,6 +184,42 @@ negative:
...
@@ -183,6 +184,42 @@ negative:
unresolvable
;
unresolvable
;
```
```
```
js
/*---
negative:
phase: parse
type: ReferenceError
---*/
throw
"
Test262: This statement should not be evaluated.
"
;
'
litera
'
=
1
;
```
```
js
/*---
negative:
phase: parse
type: SyntaxError
---*/
throw
"
Test262: This statement should not be evaluated.
"
;
var
a
\
u2E2F
;
```
```
js
/*---
negative:
phase: resolution
type: ReferenceError
flags: [module]
---*/
throw
"
Test262: This statement should not be evaluated.
"
;
export
{}
from
'
./instn-resolve-empty-export_FIXTURE.js
'
;
// instn-resolve-empty-export_FIXTURE.js contains only:
// 0++;
```
### `includes`
### `includes`
One or more files whose content must be evaluated in the test realm's global
One or more files whose content must be evaluated in the test realm's global
...
...
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