summaryrefslogtreecommitdiff
path: root/ext/ffi/00_ffi.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-08-23 09:16:43 +0530
committerGitHub <noreply@github.com>2022-08-23 09:16:43 +0530
commite34260c5b05f2a93f695d807b7cb54a50605885e (patch)
tree3dac23f50bcc9bc86e85497e707a0a5c07b73df7 /ext/ffi/00_ffi.js
parentd0c54777311d2cc30b824f397b7541dca80875fa (diff)
BREAKING(ext/ffi): specialized `buffer` type (#15518)
Diffstat (limited to 'ext/ffi/00_ffi.js')
-rw-r--r--ext/ffi/00_ffi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ffi/00_ffi.js b/ext/ffi/00_ffi.js
index ca9cb3474..6957b9418 100644
--- a/ext/ffi/00_ffi.js
+++ b/ext/ffi/00_ffi.js
@@ -216,7 +216,7 @@
}
function isPointerType(type) {
- return type === "pointer" ||
+ return type === "buffer" || type === "pointer" ||
typeof type === "object" && type !== null && "function" in type;
}