mirror of
https://github.com/tc39/test262.git
synced 2025-07-12 16:44:49 +02:00
Merge pull request #555 from bocoup/fix-example
Correct example in contribution guidelines
This commit is contained in:
commit
c4086508db
@ -193,8 +193,8 @@ var var = var;
|
|||||||
Expectations for **runtime errors** should be defined using the `assert.throws` method and the appropriate JavaScript Error constructor function:
|
Expectations for **runtime errors** should be defined using the `assert.throws` method and the appropriate JavaScript Error constructor function:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
assert.throws(ReferenceError, function() {
|
assert.throws(TypeError, function() {
|
||||||
1 += 1; // expect this to throw ReferenceError
|
null(); // expect this statement to throw a TypeError
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user