summaryrefslogtreecommitdiff
path: root/test/parallel/test-repl-context.js
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2017-04-07 16:15:46 +0200
committerMichaël Zasso <targos@protonmail.com>2017-04-13 11:31:39 +0200
commit9de2e159c4e83bea80c1d96abdabc6a69207344c (patch)
treeeee175de8d508a9740ed155e38effff69fd9558d /test/parallel/test-repl-context.js
parent4ac3ef5cc861f2aeca6b657c5973b1517ffed037 (diff)
downloadandroid-node-v8-9de2e159c4e83bea80c1d96abdabc6a69207344c.tar.gz
android-node-v8-9de2e159c4e83bea80c1d96abdabc6a69207344c.tar.bz2
android-node-v8-9de2e159c4e83bea80c1d96abdabc6a69207344c.zip
test: add second argument to assert.throws
This adds RegExp or error constructor arguments to the remaining places where it is missing in preparation for the commit that will enforce the presence of at least two arguments. PR-URL: https://github.com/nodejs/node/pull/12270 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/parallel/test-repl-context.js')
-rw-r--r--test/parallel/test-repl-context.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-repl-context.js b/test/parallel/test-repl-context.js
index 2287a247d8..a2f0421431 100644
--- a/test/parallel/test-repl-context.js
+++ b/test/parallel/test-repl-context.js
@@ -22,5 +22,5 @@ function testContext(repl) {
assert.strictEqual(context.global, context);
// ensure that the repl console instance does not have a setter
- assert.throws(() => context.console = 'foo');
+ assert.throws(() => context.console = 'foo', TypeError);
}