mirror of https://github.com/tc39/test262.git
CONTRIBUTING.md: remove $ERROR from docs
This commit is contained in:
parent
e4c53bef51
commit
44aac8eadd
|
@ -241,7 +241,6 @@ Function | Purpose
|
|||
`assert.throws(expectedErrorConstructor, fn, message)` | throw a new Test262Error instance if the provided function does not throw an error, or if the constructor of the value thrown does not match the provided constructor
|
||||
`$DONOTEVALUATE()` | throw an exception if the code gets evaluated. This may only be used in [negative test cases for parsing errors](#handling-errors-and-negative-test-cases).
|
||||
`throw "Test262: This statement should not be evaluated.";` | throw an exception if the code gets evaluated. Use this if the test file has the `raw` flag and it's a negative test case for parsing error.
|
||||
`$ERROR(message)` | construct a Test262Error object and throw it <br>**DEPRECATED** -- Do not use in new tests. Use `assert`, `assert.*`, or `throw new Test262Error` instead.
|
||||
|
||||
```javascript
|
||||
/// error class
|
||||
|
|
Loading…
Reference in New Issue