aboutsummaryrefslogtreecommitdiff
path: root/src/js/builtins
diff options
context:
space:
mode:
authorGravatar dave caruso <me@paperdave.net> 2023-09-18 20:33:58 -0400
committerGravatar GitHub <noreply@github.com> 2023-09-18 17:33:58 -0700
commiteb1dc7eede31b12726ae320263850fefaaf490f3 (patch)
tree68a1a29b2505dc01fc65d94b0eecd40a06186778 /src/js/builtins
parent79dd196edd820db5212da1a524fd5f888b38a3aa (diff)
downloadbun-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.ts3
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(