diff options
author | Ujjwal Sharma <usharma1998@gmail.com> | 2018-08-29 16:46:36 +0200 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2018-09-02 16:32:15 +0200 |
commit | 37cd10a1165537d25cd73454ffa81a4e964a56f7 (patch) | |
tree | d9146f1c17e1a7f5e0cfe9d3e8833c66662e7f7c /lib/buffer.js | |
parent | 5da155398ef8645c76872c6db3114a3e796a80da (diff) | |
download | android-node-v8-37cd10a1165537d25cd73454ffa81a4e964a56f7.tar.gz android-node-v8-37cd10a1165537d25cd73454ffa81a4e964a56f7.tar.bz2 android-node-v8-37cd10a1165537d25cd73454ffa81a4e964a56f7.zip |
src: remove calls to deprecated v8 functions (Uint32Value)
Remove all calls to deprecated v8 functions (here:
Value::Uint32Value) inside the code (src directory only).
PR-URL: https://github.com/nodejs/node/pull/22143
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Diffstat (limited to 'lib/buffer.js')
-rw-r--r-- | lib/buffer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/buffer.js b/lib/buffer.js index e025b322f0..5a21732c35 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -772,7 +772,7 @@ function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) { } else if (isUint8Array(val)) { return indexOfBuffer(buffer, val, byteOffset, encoding, dir); } else if (typeof val === 'number') { - return indexOfNumber(buffer, val, byteOffset, dir); + return indexOfNumber(buffer, val >>> 0, byteOffset, dir); } throw new ERR_INVALID_ARG_TYPE( |