mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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:
1 parent
5da155398e
commit
37cd10a116
9 files changed
+70
-45
No files matched your search
+1
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user