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>
This commit is contained in:
Ujjwal Sharma authored and Michaël Zasso committed 2018-09-02 16:32:15 +02:00
1 parent 5da155398e
commit 37cd10a116
9 files changed
+70 -45

No files matched your search

+1 -1
View File
@@ -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(