aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-27 05:34:58 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-27 05:35:11 -0700
commit87921520e45a2c8e44ab7dc844da2641a83bd164 (patch)
tree4c3f44de7ad26279e81ef55cf012b2b756115246
parent73467a5736338fc7424fb92a59835d207d977b6c (diff)
downloadbun-87921520e45a2c8e44ab7dc844da2641a83bd164.tar.gz
bun-87921520e45a2c8e44ab7dc844da2641a83bd164.tar.zst
bun-87921520e45a2c8e44ab7dc844da2641a83bd164.zip
Add TODO note
-rw-r--r--src/js_parser.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/js_parser.zig b/src/js_parser.zig
index 6b34dbd84..5933b3e9d 100644
--- a/src/js_parser.zig
+++ b/src/js_parser.zig
@@ -2986,6 +2986,8 @@ pub const Parser = struct {
// Move class export statements to the top of the file if we can
// This automatically resolves some cyclical import issues
// https://github.com/kysely-org/kysely/issues/412
+ // TODO: this breaks code if they have any static variables or properties which reference anything from the parent scope
+ // we need to fix it before we merge v0.6.0
var list = if (!p.options.bundle and class.is_export and class.class.extends == null) &before else &parts;
var sliced = try ListManaged(Stmt).initCapacity(p.allocator, 1);
sliced.items.len = 1;