diff options
author | 2023-09-18 20:33:58 -0400 | |
---|---|---|
committer | 2023-09-18 17:33:58 -0700 | |
commit | eb1dc7eede31b12726ae320263850fefaaf490f3 (patch) | |
tree | 68a1a29b2505dc01fc65d94b0eecd40a06186778 /src/js/builtins | |
parent | 79dd196edd820db5212da1a524fd5f888b38a3aa (diff) | |
download | bun-eb1dc7eede31b12726ae320263850fefaaf490f3.tar.gz bun-eb1dc7eede31b12726ae320263850fefaaf490f3.tar.zst bun-eb1dc7eede31b12726ae320263850fefaaf490f3.zip |
fix(runtime/node): Allow `new Buffer.alloc()` + Upgrade WebKit (#5699)
* make bufferconstructor a static hash table
* chore: Upgrade WebKit to 4d995edbc44062b251be638818edcd88d7d14dd7
* make it constructable now
* fix comment
* yippee
* update CI workflows
Diffstat (limited to 'src/js/builtins')
-rw-r--r-- | src/js/builtins/JSBufferConstructor.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/builtins/JSBufferConstructor.ts b/src/js/builtins/JSBufferConstructor.ts index a1072ea10..69615d8dc 100644 --- a/src/js/builtins/JSBufferConstructor.ts +++ b/src/js/builtins/JSBufferConstructor.ts @@ -1,3 +1,6 @@ +// This is marked as a constructor because Node.js allows `new Buffer.from`, +// Some legacy dependencies depend on this, see #3638 +$constructor; export function from(items) { if ($isUndefinedOrNull(items)) { throw new TypeError( |