We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73362fc commit e770e32Copy full SHA for e770e32
crates/swc_ecma_minifier/tests/exec.rs
@@ -10126,7 +10126,28 @@ fn feedback_regex_range() {
10126
/* eslint-enable prettier/prettier */
10127
);
10128
console.log('PASS')
10129
- "###;
+ "###;
10130
10131
run_default_exec_test(src);
10132
}
10133
+
10134
+#[test]
10135
+fn issue_6047() {
10136
+ run_default_exec_test(
10137
+ r###"
10138
+ let foo = () => 1;
10139
10140
+ const obj = {
10141
+ get 0() {
10142
+ foo = () => 2;
10143
+ return 40;
10144
+ },
10145
+ };
10146
+ console.log(obj)
10147
10148
+ var c = obj[0];
10149
10150
+ console.log(foo(c));
10151
+ "###,
10152
+ );
10153
+}
0 commit comments