diff options
author | 2023-07-20 17:33:40 -0700 | |
---|---|---|
committer | 2023-07-20 17:33:40 -0700 | |
commit | 020cf46346a66435b353c3914ef01e8fdc74779a (patch) | |
tree | 23a102cebe263fae4cfe7672200e5899584c3aa5 /src/js/builtins/codegen/index.ts | |
parent | 134c97a28289e7811d68652caf9feb2e9c80db44 (diff) | |
download | bun-020cf46346a66435b353c3914ef01e8fdc74779a.tar.gz bun-020cf46346a66435b353c3914ef01e8fdc74779a.tar.zst bun-020cf46346a66435b353c3914ef01e8fdc74779a.zip |
Fix builtins again (#3713)
Diffstat (limited to 'src/js/builtins/codegen/index.ts')
-rw-r--r-- | src/js/builtins/codegen/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/builtins/codegen/index.ts b/src/js/builtins/codegen/index.ts index 2984599fd..564b69689 100644 --- a/src/js/builtins/codegen/index.ts +++ b/src/js/builtins/codegen/index.ts @@ -229,7 +229,7 @@ $$capture_start$$(${fn.async ? "async " : ""}${ const finalReplacement = (fn.directives.sloppy ? captured : captured.replace(/function\s*\(.*?\)\s*{/, '$&"use strict";')) .replace(/^\((async )?function\(/, "($1function (") - .replace(/__intrinsic__lazy/g, "globalThis[globalThis.Symbol.for('Bun.lazy')]") + .replace(/__intrinsic__lazy\(/g, "globalThis[globalThis.Symbol.for('Bun.lazy')](") .replace(/__intrinsic__/g, "@") + "\n"; bundledFunctions.push({ |