diff options
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r-- | CONTRIBUTING.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 655cf1007..c368f65b4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 }); ``` |