summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-mutable-headers.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2015-11-08 09:51:29 -0800
committerRich Trott <rtrott@gmail.com>2015-11-10 21:00:35 -0800
commit35f2f64edd55157bf713e3ef70600705acd1c581 (patch)
treebbbcdea007ede2e102074916d04c6d2b429d012b /test/parallel/test-http-mutable-headers.js
parent0966ab99966b7d3fbe4d7b93797fb299595fca72 (diff)
downloadandroid-node-v8-35f2f64edd55157bf713e3ef70600705acd1c581.tar.gz
android-node-v8-35f2f64edd55157bf713e3ef70600705acd1c581.tar.bz2
android-node-v8-35f2f64edd55157bf713e3ef70600705acd1c581.zip
tools: Use `throw new Error()` consistently
In preparation for a lint rule that will enforce `throw new Error()` over `throw Error()`, fix the handful of instances in the code that use `throw Error()`. PR-URL: https://github.com/nodejs/node/pull/3714 Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-http-mutable-headers.js')
-rw-r--r--test/parallel/test-http-mutable-headers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http-mutable-headers.js b/test/parallel/test-http-mutable-headers.js
index 2a60117328..af8fd6d7e8 100644
--- a/test/parallel/test-http-mutable-headers.js
+++ b/test/parallel/test-http-mutable-headers.js
@@ -110,7 +110,7 @@ function nextTest() {
break;
default:
- throw Error('?');
+ throw new Error('?');
}
response.setEncoding('utf8');