From 8dcfdadb4e59ca9d1cc1a231c0fb901f40e2a827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 19 Nov 2024 18:07:27 +0900 Subject: [PATCH 1/9] Add a test --- crates/swc/tests/stacktrace/issue-9742/input/index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 crates/swc/tests/stacktrace/issue-9742/input/index.js diff --git a/crates/swc/tests/stacktrace/issue-9742/input/index.js b/crates/swc/tests/stacktrace/issue-9742/input/index.js new file mode 100644 index 000000000000..592f716c8a9b --- /dev/null +++ b/crates/swc/tests/stacktrace/issue-9742/input/index.js @@ -0,0 +1,11 @@ +class Parent { + constructor() { + throw new Error('foo') + } +} + +class Child extends Parent { + handleScroll = () => { } +} + +new Child() \ No newline at end of file From b72899f90b2690305ec83619796d695fa4a75bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 19 Nov 2024 18:10:39 +0900 Subject: [PATCH 2/9] Add .swcrc --- crates/swc/tests/stacktrace/issue-9742/.swcrc | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 crates/swc/tests/stacktrace/issue-9742/.swcrc diff --git a/crates/swc/tests/stacktrace/issue-9742/.swcrc b/crates/swc/tests/stacktrace/issue-9742/.swcrc new file mode 100644 index 000000000000..c0d63b43b4ea --- /dev/null +++ b/crates/swc/tests/stacktrace/issue-9742/.swcrc @@ -0,0 +1,21 @@ +{ + "jsc": { + "parser": { + "syntax": "ecmascript", + "jsx": false + }, + "loose": true, + "minify": { + "compress": false, + "mangle": false + } + }, + "module": { + "type": "es6" + }, + "minify": false, + "isModule": true, + "env": { + "targets": "node >= 8" + } +} \ No newline at end of file From 60bbca4d88fa96ba1812963745fb52de6cf25228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 19 Nov 2024 18:13:02 +0900 Subject: [PATCH 3/9] deprecate --- crates/swc_ecma_utils/src/lib.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/swc_ecma_utils/src/lib.rs b/crates/swc_ecma_utils/src/lib.rs index d6d375fd892f..729fca4ae970 100644 --- a/crates/swc_ecma_utils/src/lib.rs +++ b/crates/swc_ecma_utils/src/lib.rs @@ -2226,7 +2226,12 @@ pub fn prop_name_to_member_prop(prop_name: PropName) -> MemberProp { } } +#[deprecated(note = "Use default_constructor_with_span instead")] pub fn default_constructor(has_super: bool) -> Constructor { + default_constructor_with_span(has_super, DUMMY_SP) +} + +pub fn default_constructor_with_span(has_super: bool, super_call_span: Span) -> Constructor { trace!(has_super = has_super, "Creating a default constructor"); let span = DUMMY_SP; @@ -2253,7 +2258,9 @@ pub fn default_constructor(has_super: bool) -> Constructor { stmts: if has_super { vec![CallExpr { span: DUMMY_SP, - callee: Callee::Super(Super { span: DUMMY_SP }), + callee: Callee::Super(Super { + span: super_call_span, + }), args: vec![ExprOrSpread { spread: Some(DUMMY_SP), expr: Box::new(Expr::Ident(quote_ident!("args").into())), From fd1da323ddca67b12f3868832111928bb16230fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 19 Nov 2024 18:37:10 +0900 Subject: [PATCH 4/9] Fix span --- crates/swc_ecma_utils/src/lib.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/crates/swc_ecma_utils/src/lib.rs b/crates/swc_ecma_utils/src/lib.rs index 729fca4ae970..6141bae98916 100644 --- a/crates/swc_ecma_utils/src/lib.rs +++ b/crates/swc_ecma_utils/src/lib.rs @@ -2231,10 +2231,11 @@ pub fn default_constructor(has_super: bool) -> Constructor { default_constructor_with_span(has_super, DUMMY_SP) } +/// `super_call_span` should be the span of the class definition +/// Use value of [`Class::span`]. pub fn default_constructor_with_span(has_super: bool, super_call_span: Span) -> Constructor { trace!(has_super = has_super, "Creating a default constructor"); - - let span = DUMMY_SP; + let super_call_span = super_call_span.with_hi(super_call_span.lo); Constructor { span: DUMMY_SP, @@ -2242,7 +2243,7 @@ pub fn default_constructor_with_span(has_super: bool, super_call_span: Span) -> is_optional: false, params: if has_super { vec![ParamOrTsParamProp::Param(Param { - span, + span: DUMMY_SP, decorators: Vec::new(), pat: Pat::Rest(RestPat { span: DUMMY_SP, @@ -2257,10 +2258,8 @@ pub fn default_constructor_with_span(has_super: bool, super_call_span: Span) -> body: Some(BlockStmt { stmts: if has_super { vec![CallExpr { - span: DUMMY_SP, - callee: Callee::Super(Super { - span: super_call_span, - }), + span: super_call_span, + callee: Callee::Super(Super { span: DUMMY_SP }), args: vec![ExprOrSpread { spread: Some(DUMMY_SP), expr: Box::new(Expr::Ident(quote_ident!("args").into())), From a2cd0c9714e2823240bcc76c2cf8b604a1745920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 19 Nov 2024 18:37:45 +0900 Subject: [PATCH 5/9] class field set --- .../src/class_fields_use_set.rs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/crates/swc_ecma_transforms_compat/src/class_fields_use_set.rs b/crates/swc_ecma_transforms_compat/src/class_fields_use_set.rs index 6e929f2a33d1..12b06fb38af6 100644 --- a/crates/swc_ecma_transforms_compat/src/class_fields_use_set.rs +++ b/crates/swc_ecma_transforms_compat/src/class_fields_use_set.rs @@ -1,10 +1,11 @@ use std::mem; -use swc_common::{util::take::Take, DUMMY_SP}; +use swc_common::{util::take::Take, Span, Spanned, DUMMY_SP}; use swc_ecma_ast::*; use swc_ecma_utils::{ - constructor::inject_after_super, default_constructor, is_literal, is_simple_pure_expr, - private_ident, prop_name_to_member_prop, ExprFactory, ModuleItemLike, StmtLike, + constructor::inject_after_super, default_constructor_with_span, is_literal, + is_simple_pure_expr, private_ident, prop_name_to_member_prop, ExprFactory, ModuleItemLike, + StmtLike, }; use swc_ecma_visit::{noop_visit_mut_type, visit_mut_pass, VisitMut, VisitMutWith}; @@ -107,8 +108,8 @@ impl VisitMut for ClassFieldsUseSet { // visit inner classes first n.visit_mut_children_with(self); - let mut fields_handler = FieldsHandler { - has_super: n.super_class.is_some(), + let mut fields_handler: FieldsHandler = FieldsHandler { + super_call_span: n.super_class.as_ref().map(|_| n.span), }; n.body.visit_mut_with(&mut fields_handler); @@ -160,7 +161,7 @@ impl ClassFieldsUseSet { #[derive(Debug)] struct FieldsHandler { - has_super: bool, + super_call_span: Option, } impl VisitMut for FieldsHandler { @@ -253,7 +254,10 @@ impl VisitMut for FieldsHandler { if let Some(c) = n.iter_mut().find_map(|m| m.as_mut_constructor()) { inject_after_super(c, constructor_inits.take()); } else { - let mut c = default_constructor(self.has_super); + let mut c = default_constructor_with_span( + self.super_call_span.is_some(), + self.super_call_span.span(), + ); inject_after_super(&mut c, constructor_inits.take()); n.push(c.into()); } From d750514dfdfc29e9fa360486a76e7a133fa4008e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 19 Nov 2024 18:38:12 +0900 Subject: [PATCH 6/9] es2015 --- crates/swc_ecma_compat_es2015/src/classes/constructor.rs | 8 +++++--- crates/swc_ecma_compat_es2015/src/classes/mod.rs | 9 ++++++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/crates/swc_ecma_compat_es2015/src/classes/constructor.rs b/crates/swc_ecma_compat_es2015/src/classes/constructor.rs index 386de3f2160c..71f1893dabf8 100644 --- a/crates/swc_ecma_compat_es2015/src/classes/constructor.rs +++ b/crates/swc_ecma_compat_es2015/src/classes/constructor.rs @@ -1,10 +1,10 @@ use std::mem; -use swc_common::{util::take::Take, Spanned, SyntaxContext, DUMMY_SP}; +use swc_common::{util::take::Take, Span, Spanned, SyntaxContext, DUMMY_SP}; use swc_ecma_ast::*; use swc_ecma_transforms_base::{helper, helper_expr}; use swc_ecma_transforms_classes::super_field::SuperFieldAccessFolder; -use swc_ecma_utils::{default_constructor, private_ident, quote_ident, ExprFactory}; +use swc_ecma_utils::{default_constructor_with_span, private_ident, quote_ident, ExprFactory}; use swc_ecma_visit::{noop_visit_mut_type, VisitMut, VisitMutWith}; use swc_trace_macro::swc_trace; use tracing::debug; @@ -12,13 +12,15 @@ use tracing::debug; use super::Config; pub(super) fn fold_constructor( + class_span: Span, constructor: Option, class_name: &Ident, class_super_name: &Option, config: Config, ) -> FnDecl { let is_derived = class_super_name.is_some(); - let mut constructor = constructor.unwrap_or_else(|| default_constructor(is_derived)); + let mut constructor = + constructor.unwrap_or_else(|| default_constructor_with_span(is_derived, class_span)); // Black magic to detect injected constructor. let is_constructor_default = constructor.span.is_dummy(); diff --git a/crates/swc_ecma_compat_es2015/src/classes/mod.rs b/crates/swc_ecma_compat_es2015/src/classes/mod.rs index 100015bfc3b8..b654fa6d3fbd 100644 --- a/crates/swc_ecma_compat_es2015/src/classes/mod.rs +++ b/crates/swc_ecma_compat_es2015/src/classes/mod.rs @@ -548,7 +548,14 @@ impl Classes { // constructor stmts.push( - fold_constructor(constructor, &class_name, &super_class_ident, self.config).into(), + fold_constructor( + class.span, + constructor, + &class_name, + &super_class_ident, + self.config, + ) + .into(), ); // convert class methods From f49ec2768b0d5238b93f2bd0aaac054f75f5a8a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 19 Nov 2024 18:39:31 +0900 Subject: [PATCH 7/9] fix all --- .../src/class_properties/mod.rs | 16 +++++++++------- .../src/private_in_object.rs | 8 ++++++-- .../src/decorator_impl.rs | 4 ++-- .../src/decorators/mod.rs | 5 +++-- 4 files changed, 20 insertions(+), 13 deletions(-) diff --git a/crates/swc_ecma_compat_es2022/src/class_properties/mod.rs b/crates/swc_ecma_compat_es2022/src/class_properties/mod.rs index 256abdbe23f7..6a64c7bd6250 100644 --- a/crates/swc_ecma_compat_es2022/src/class_properties/mod.rs +++ b/crates/swc_ecma_compat_es2022/src/class_properties/mod.rs @@ -1,15 +1,15 @@ use swc_common::{ - collections::AHashMap, errors::HANDLER, source_map::PURE_SP, util::take::Take, Mark, Spanned, - SyntaxContext, DUMMY_SP, + collections::AHashMap, errors::HANDLER, source_map::PURE_SP, util::take::Take, Mark, Span, + Spanned, SyntaxContext, DUMMY_SP, }; use swc_ecma_ast::*; use swc_ecma_transforms_base::{helper, perf::Check}; use swc_ecma_transforms_classes::super_field::SuperFieldAccessFolder; use swc_ecma_transforms_macros::fast_path; use swc_ecma_utils::{ - alias_ident_for, alias_if_required, constructor::inject_after_super, default_constructor, - is_literal, prepend_stmt, private_ident, quote_ident, replace_ident, ExprFactory, - ModuleItemLike, StmtLike, + alias_ident_for, alias_if_required, constructor::inject_after_super, + default_constructor_with_span, is_literal, prepend_stmt, private_ident, quote_ident, + replace_ident, ExprFactory, ModuleItemLike, StmtLike, }; use swc_ecma_visit::{ noop_visit_mut_type, noop_visit_type, visit_mut_pass, Visit, VisitMut, VisitMutWith, VisitWith, @@ -938,7 +938,8 @@ impl ClassProperties { } } - let constructor = self.process_constructor(constructor, has_super, constructor_inits); + let constructor = + self.process_constructor(class.span, constructor, has_super, constructor_inits); if let Some(c) = constructor { members.push(ClassMember::Constructor(c)); } @@ -1015,6 +1016,7 @@ impl ClassProperties { #[allow(clippy::vec_box)] fn process_constructor( &mut self, + class_span: Span, constructor: Option, has_super: bool, constructor_exprs: MemberInitRecord, @@ -1023,7 +1025,7 @@ impl ClassProperties { if constructor_exprs.record.is_empty() { None } else { - Some(default_constructor(has_super)) + Some(default_constructor_with_span(has_super, class_span)) } }); diff --git a/crates/swc_ecma_compat_es2022/src/private_in_object.rs b/crates/swc_ecma_compat_es2022/src/private_in_object.rs index d6f41993b0c5..dbd04b13fc97 100644 --- a/crates/swc_ecma_compat_es2022/src/private_in_object.rs +++ b/crates/swc_ecma_compat_es2022/src/private_in_object.rs @@ -9,7 +9,9 @@ use swc_common::{ DUMMY_SP, }; use swc_ecma_ast::*; -use swc_ecma_utils::{default_constructor, prepend_stmt, private_ident, quote_ident, ExprFactory}; +use swc_ecma_utils::{ + default_constructor_with_span, prepend_stmt, private_ident, quote_ident, ExprFactory, +}; use swc_ecma_visit::{ noop_visit_mut_type, noop_visit_type, visit_mut_pass, Visit, VisitMut, VisitMutWith, VisitWith, }; @@ -174,7 +176,9 @@ impl VisitMut for PrivateInObject { if !has_constructor { let has_super = n.super_class.is_some(); n.body - .push(ClassMember::Constructor(default_constructor(has_super))); + .push(ClassMember::Constructor(default_constructor_with_span( + has_super, n.span, + ))); } for m in &mut n.body { diff --git a/crates/swc_ecma_transforms_proposal/src/decorator_impl.rs b/crates/swc_ecma_transforms_proposal/src/decorator_impl.rs index 970da4fd8142..0b5221b1f4c6 100644 --- a/crates/swc_ecma_transforms_proposal/src/decorator_impl.rs +++ b/crates/swc_ecma_transforms_proposal/src/decorator_impl.rs @@ -6,7 +6,7 @@ use swc_common::{util::take::Take, Mark, Spanned, SyntaxContext, DUMMY_SP}; use swc_ecma_ast::*; use swc_ecma_transforms_base::{helper, helper_expr}; use swc_ecma_utils::{ - alias_ident_for, constructor::inject_after_super, default_constructor, + alias_ident_for, constructor::inject_after_super, default_constructor_with_span, is_maybe_branch_directive, private_ident, prop_name_to_expr_value, quote_ident, replace_ident, stack_size::maybe_grow_default, ExprFactory, IdentRenamer, }; @@ -330,7 +330,7 @@ impl DecoratorPass { c.body.insert( insert_index, - default_constructor(c.super_class.is_some()).into(), + default_constructor_with_span(c.super_class.is_some(), c.span).into(), ); if let Some(ClassMember::Constructor(c)) = c.body.get_mut(insert_index) { diff --git a/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs b/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs index 303677548331..08da7c8aa194 100644 --- a/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs +++ b/crates/swc_ecma_transforms_proposal/src/decorators/mod.rs @@ -7,7 +7,7 @@ use swc_ecma_ast::{Pass, *}; use swc_ecma_transforms_base::helper; use swc_ecma_transforms_classes::super_field::SuperFieldAccessFolder; use swc_ecma_utils::{ - alias_ident_for, constructor::inject_after_super, default_constructor, prepend_stmt, + alias_ident_for, constructor::inject_after_super, default_constructor_with_span, prepend_stmt, private_ident, prop_name_to_expr, prop_name_to_expr_value, quote_ident, quote_str, ExprFactory, }; use swc_ecma_visit::{ @@ -316,7 +316,8 @@ impl Decorators { ClassMember::Constructor(c) } None => { - let mut c = default_constructor(super_class_ident.is_some()); + let mut c = + default_constructor_with_span(super_class_ident.is_some(), class.span); c.body .as_mut() From e5d6cfdc429714a5b0065925daad4ee15ad04e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 19 Nov 2024 18:40:02 +0900 Subject: [PATCH 8/9] Update test refs --- crates/swc/tests/fixture/issues-5xxx/5272/1/output/a.map | 2 +- .../fixture/sourcemap/issue-3854/1-true/output/index.map | 2 +- .../sourcemap/issue-3854/2-inline/output/index.ts | 2 +- crates/swc/tests/stacktrace/issue-9742/output/stacks.txt | 9 +++++++++ 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 crates/swc/tests/stacktrace/issue-9742/output/stacks.txt diff --git a/crates/swc/tests/fixture/issues-5xxx/5272/1/output/a.map b/crates/swc/tests/fixture/issues-5xxx/5272/1/output/a.map index 3c83a03282c0..dc5e796c74e5 100644 --- a/crates/swc/tests/fixture/issues-5xxx/5272/1/output/a.map +++ b/crates/swc/tests/fixture/issues-5xxx/5272/1/output/a.map @@ -1,5 +1,5 @@ { - "mappings": ";;;+BACaA;;;eAAAA;;;;;;;oBADQ;AACd,IAAA,AAAMA,oBAAN;;gBAAMA;aAAAA;kCAAAA;mCAAAA;;oBAAAA;;YACTC,KAAAA;mBAAAA,SAAAA;gBACI,OAAO,IAAI,IAAI,CAACC,GAAG;YACvB;;;WAHSF;EAAYG,UAAI", + "mappings": ";;;+BACaA;;;eAAAA;;;;;;;oBADQ;AACd,IAAA,AAAMA,oBAAN;;gBAAMA;aAAAA;kCAAAA;eAAN,oBAAMA;;oBAAAA;;YACTC,KAAAA;mBAAAA,SAAAA;gBACI,OAAO,IAAI,IAAI,CAACC,GAAG;YACvB;;;WAHSF;EAAYG,UAAI", "names": [ "Foo", "bar", diff --git a/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.map b/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.map index 186b47e40be0..ead4743cb0c5 100644 --- a/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.map +++ b/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.map @@ -1,5 +1,5 @@ { - "mappings": ";;;;;;;;;;;IA6BaA,MAAM;eAANA;;IAMAC,MAAM;eAANA;;IARDC,IAAI;;;IAKHC,MAAM;eAANA;;IAaAC,GAAG;eAAHA;;IARAC,MAAM;eAANA;;IAKAC,OAAO;eAAPA;;IATAC,KAAK;eAALA;;IAHAC,QAAQ;eAARA;;;;;;;;kCA9BuC;8BACJ;gCAC1B;2FAwBR;AAGP,MAAMR,SAAqC,IAAM,IAAIS;AACrD,MAAMD,WAA2C,IACpD,IAAIE;AACD,MAAMP,SAAuC,IAAM,IAAIQ;AACvD,MAAMJ,QAAyC,IAClD,IAAIK;AACD,MAAMX,SAA2C,IACpD,IAAIY;AACD,MAAMR,SAGT,CAACS,QAAkC,EAAE,GACrC,IAAIC,wBAAwBD;AACzB,MAAMR,UAAgD,IACzD,IAAIU;AAED,MAAMZ,MAAM;IACfG,OAAQ,IACJ,IAAIU;IACRZ,QAAS,IACL,IAAIa;AACZ;IAGI,uCACA,yCACA,2CACA;AAJJ,MAAMT,oBAAoBU,iCAAe;IAMrCC,OAAO,GAAGA,MAA4B,EAAQ;yCACrC,SAAUA,OAAOC,GAAG,CAACC,yBAAW;QACrC,OAA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IAAI;IACf;IAEAW,QAAuB;QACnB,OAAO,2BAAA,IAAI,EAAC,cAAYA,KAAK;IACjC;IAZAgB,YAAY,GAAG3B,KAA+B,CAAE;QAC5C,KAAK,IAHT,kCAAA;;mBAAuC,IAAII;;QAIvC,IAAI,CAACJ,KAAK,IAAIA;IAClB;AAUJ;IAGI,uCACA;AAFJ,MAAME,8BAA8BG,iCAAe;IAI/CL,MAAM,GAAGA,KAA+B,EAAQ;yCACvC,SAASA,MAAMO,GAAG,CAACC,yBAAW;QACnC,OAAO,IAAI;IACf;IAEAK,OAAO,GAAGA,MAAgC,EAAQ;yCACzC,UAAUA,OAAON,GAAG,CAACC,yBAAW;QACrC,OAAO,IAAI;IACf;IAEAG,QAAwB;QACpB,OAAO;YACHX,KAAK,6BAAE,IAAI,EAAC;YACZa,MAAM,6BAAE,IAAI,EAAC;QACjB;IACJ;;QAnBJ,gBACI,kCAAA;;mBAA0B,EAAE;YAC5B,kCAAA;;mBAA2B,EAAE;;;AAkBjC", "names": [ "create", "header", diff --git a/crates/swc/tests/fixture/sourcemap/issue-3854/2-inline/output/index.ts b/crates/swc/tests/fixture/sourcemap/issue-3854/2-inline/output/index.ts index a7e0305d27ee..4a440411069c 100644 --- a/crates/swc/tests/fixture/sourcemap/issue-3854/2-inline/output/index.ts +++ b/crates/swc/tests/fixture/sourcemap/issue-3854/2-inline/output/index.ts @@ -316,4 +316,4 @@ class ArticleSourcesBuilder extends _AbstractBuilders.AbstractBuilder { } } -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2lucHV0L2luZGV4LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFic3RyYWN0QnVpbGRlciwgQWJzdHJhY3RTZXFCdWlsZGVyIH0gZnJvbSBcIi4vQWJzdHJhY3RCdWlsZGVyc1wiO1xuaW1wb3J0IHsgaGFzaCwgbWFwQnVpbGRBcmcsIG1hcEJ1aWxkQXJncyB9IG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pCO0lBQ0o7O1FBbkJKLGdCQUNJLGtDQUFBOzttQkFBMEIsRUFBRTtZQUM1QixrQ0FBQTs7bUJBQTJCLEVBQUU7OztBQWtCakMifQ== diff --git a/crates/swc/tests/stacktrace/issue-9742/output/stacks.txt b/crates/swc/tests/stacktrace/issue-9742/output/stacks.txt new file mode 100644 index 000000000000..d479b113794c --- /dev/null +++ b/crates/swc/tests/stacktrace/issue-9742/output/stacks.txt @@ -0,0 +1,9 @@ +$DIR/tests/stacktrace/issue-9742/input/index.js:3 + throw new Error('foo') + ^ + + +Error: foo + at constructor ($DIR/tests/stacktrace/issue-9742/input/index.js:3:15) + at Parent ($DIR/tests/stacktrace/issue-9742/input/index.js:7:1) + at Object. ($DIR/tests/stacktrace/issue-9742/input/index.js:11:1) From 36b12755d4ae71966338e387c31e598fa2ba94f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Tue, 19 Nov 2024 18:44:52 +0900 Subject: [PATCH 9/9] Create smart-horses-repeat.md --- .changeset/smart-horses-repeat.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .changeset/smart-horses-repeat.md diff --git a/.changeset/smart-horses-repeat.md b/.changeset/smart-horses-repeat.md new file mode 100644 index 000000000000..ea25d0477c8f --- /dev/null +++ b/.changeset/smart-horses-repeat.md @@ -0,0 +1,9 @@ +--- +swc_ecma_compat_es2015: patch +swc_ecma_compat_es2022: patch +swc_ecma_transforms_compat: patch +swc_ecma_transforms_proposal: patch +swc_ecma_utils: patch +--- + +fix(es/transforms): Source map `super(...args)` calls in injected constructors