aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/builtins/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/builtins/js')
-rw-r--r--src/bun.js/builtins/js/JSBufferPrototype.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bun.js/builtins/js/JSBufferPrototype.js b/src/bun.js/builtins/js/JSBufferPrototype.js
index ec22806e2..1ae6fb0d6 100644
--- a/src/bun.js/builtins/js/JSBufferPrototype.js
+++ b/src/bun.js/builtins/js/JSBufferPrototype.js
@@ -155,6 +155,13 @@ function readUIntLE(offset, byteLength) {
}
@throwRangeError("byteLength must be >= 1 and <= 6");
}
+
+function inspect(recurseTimes, ctx) {
+ "use strict";
+
+ return @Bun.inspect(this);
+}
+
function readUIntBE(offset, byteLength) {
"use strict";
const view = this.@dataView ||= new DataView(this.buffer, this.byteOffset, this.byteLength);