diff options
author | 2023-01-21 22:55:56 -0800 | |
---|---|---|
committer | 2023-01-21 22:55:56 -0800 | |
commit | 29a576a167f45eb5080bf79afae7a02fe682d75d (patch) | |
tree | 7a246355f91936f69877a79133935cd48b534838 /src/bun.js/builtins/js | |
parent | 6424ce6397c0854286f58a589251b8aaed5836a3 (diff) | |
download | bun-29a576a167f45eb5080bf79afae7a02fe682d75d.tar.gz bun-29a576a167f45eb5080bf79afae7a02fe682d75d.tar.zst bun-29a576a167f45eb5080bf79afae7a02fe682d75d.zip |
[Buffer] Add deprecated `parent` property
Diffstat (limited to 'src/bun.js/builtins/js')
-rw-r--r-- | src/bun.js/builtins/js/JSBufferPrototype.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bun.js/builtins/js/JSBufferPrototype.js b/src/bun.js/builtins/js/JSBufferPrototype.js index ef3332d88..7fdd8cff5 100644 --- a/src/bun.js/builtins/js/JSBufferPrototype.js +++ b/src/bun.js/builtins/js/JSBufferPrototype.js @@ -300,6 +300,12 @@ function slice(start, end) { return new Buffer(buffer, byteOffset + start_, end_ > start_ ? (end_ - start_) : 0); } +@getter +function parent() { + "use strict"; + return this.buffer; +} + function initializeBunBuffer(parameters) { |