aboutsummaryrefslogtreecommitdiff
path: root/src/js/builtins/JSBufferConstructor.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/builtins/JSBufferConstructor.ts')
-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(