summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichaƫl Zasso <targos@protonmail.com>2018-09-02 17:49:11 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-09-05 12:59:25 +0200
commit594a84d8f2cb3c630744487d02dbcff05675d6cf (patch)
treeae066c7a853f3a42ee0febc3d9027c2cdc9bc013 /test
parentd6a43438d6ed3f262cc87fe2ebd0c46a87c1ff57 (diff)
downloadandroid-node-v8-594a84d8f2cb3c630744487d02dbcff05675d6cf.tar.gz
android-node-v8-594a84d8f2cb3c630744487d02dbcff05675d6cf.tar.bz2
android-node-v8-594a84d8f2cb3c630744487d02dbcff05675d6cf.zip
src: remove calls to deprecated V8 functions (Int32Value)
Remove all calls to deprecated V8 functions (here: Value::Int32Value) inside the code. PR-URL: https://github.com/nodejs/node/pull/22662 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-http-parser-bad-ref.js2
-rw-r--r--test/sequential/test-async-wrap-getasyncid.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http-parser-bad-ref.js b/test/parallel/test-http-parser-bad-ref.js
index 60151c6348..b44bc3f453 100644
--- a/test/parallel/test-http-parser-bad-ref.js
+++ b/test/parallel/test-http-parser-bad-ref.js
@@ -25,7 +25,7 @@ function flushPool() {
function demoBug(part1, part2) {
flushPool();
- const parser = new HTTPParser('REQUEST');
+ const parser = new HTTPParser(0);
parser.headers = [];
parser.url = '';
diff --git a/test/sequential/test-async-wrap-getasyncid.js b/test/sequential/test-async-wrap-getasyncid.js
index a3acda54a1..aac356df2a 100644
--- a/test/sequential/test-async-wrap-getasyncid.js
+++ b/test/sequential/test-async-wrap-getasyncid.js
@@ -148,7 +148,7 @@ if (common.hasCrypto) { // eslint-disable-line node-core/crypto-check
{
const { HTTPParser } = internalBinding('http_parser');
- testInitialized(new HTTPParser(), 'HTTPParser');
+ testInitialized(new HTTPParser(0), 'HTTPParser');
}