mirror of
https://github.com/tc39/test262.git
synced 2025-07-10 07:34:37 +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:
|
||||
|
||||
```javascript
|
||||
assert.throws(ReferenceError, function() {
|
||||
1 += 1; // expect this to throw ReferenceError
|
||||
assert.throws(TypeError, function() {
|
||||
null(); // expect this statement to throw a TypeError
|
||||
});
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user