diff options
author | 2023-05-22 13:53:00 -0700 | |
---|---|---|
committer | 2023-05-22 13:53:24 -0700 | |
commit | e869fc092f45d03aa0398613b316814a5219b762 (patch) | |
tree | 7d0129bf7b1fc11f15a6e2f9615e97bdee020107 /src/bun.js/builtins/js | |
parent | 2a6a5cf6d96cf4f24e193aaa5e8ed7fd0b37e034 (diff) | |
download | bun-e869fc092f45d03aa0398613b316814a5219b762.tar.gz bun-e869fc092f45d03aa0398613b316814a5219b762.tar.zst bun-e869fc092f45d03aa0398613b316814a5219b762.zip |
[node:buffer] Add missing `inspect` functionbun-v0.6.3
cc @paperdave
Diffstat (limited to 'src/bun.js/builtins/js')
-rw-r--r-- | src/bun.js/builtins/js/JSBufferPrototype.js | 7 |
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); |