-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80a4680
commit 6f65d74
Showing
753 changed files
with
2,520 additions
and
3,682 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
crates/swc/tests/fixture/issues-1xxx/1490/case1/output/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
crates/swc/tests/fixture/issues-1xxx/1505/case4/output/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import { _ as _call_super } from "@swc/helpers/_/_call_super"; | ||
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; | ||
import { _ as _inherits } from "@swc/helpers/_/_inherits"; | ||
import { _ as _create_super } from "@swc/helpers/_/_create_super"; | ||
export var a = /*#__PURE__*/ function(Component1) { | ||
"use strict"; | ||
_inherits(a, Component1); | ||
var _super = _create_super(a); | ||
function a() { | ||
_class_call_check(this, a); | ||
return _super.apply(this, arguments); | ||
return _call_super(this, a, arguments); | ||
} | ||
return a; | ||
}(Component); |
5 changes: 2 additions & 3 deletions
5
crates/swc/tests/fixture/issues-1xxx/1505/case5/output/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"jsc": { | ||
"parser": { | ||
"syntax": "ecmascript" | ||
}, | ||
"externalHelpers": false, | ||
"target": "es5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
class Foo1 extends Bar { | ||
constructor() { | ||
super(); // ok | ||
} | ||
} | ||
|
||
class Foo2 extends Bar { | ||
constructor() { | ||
0, super(); // ? | ||
} | ||
} | ||
|
||
class Foo3 extends Bar { | ||
constructor() { | ||
[super()]; // ? | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
var _call_super = require("@swc/helpers/_/_call_super"); | ||
var _class_call_check = require("@swc/helpers/_/_class_call_check"); | ||
var _inherits = require("@swc/helpers/_/_inherits"); | ||
var Foo1 = /*#__PURE__*/ function(Bar1) { | ||
"use strict"; | ||
_inherits._(Foo1, Bar1); | ||
function Foo1() { | ||
_class_call_check._(this, Foo1); | ||
return _call_super._(this, Foo1); | ||
} | ||
return Foo1; | ||
}(Bar); | ||
var Foo2 = /*#__PURE__*/ function(Bar1) { | ||
"use strict"; | ||
_inherits._(Foo2, Bar1); | ||
function Foo2() { | ||
_class_call_check._(this, Foo2); | ||
var _this; | ||
0, _this = _call_super._(this, Foo2); // ? | ||
return _this; | ||
} | ||
return Foo2; | ||
}(Bar); | ||
var Foo3 = /*#__PURE__*/ function(Bar1) { | ||
"use strict"; | ||
_inherits._(Foo3, Bar1); | ||
function Foo3() { | ||
_class_call_check._(this, Foo3); | ||
var _this; | ||
[ | ||
_this = _call_super._(this, Foo3) | ||
]; // ? | ||
return _this; | ||
} | ||
return Foo3; | ||
}(Bar); |
5 changes: 2 additions & 3 deletions
5
crates/swc/tests/fixture/jsc-paths/7603/1/output/src/users/dto/update-user.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import { _ as _call_super } from "@swc/helpers/_/_call_super"; | ||
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; | ||
import { _ as _inherits } from "@swc/helpers/_/_inherits"; | ||
import { _ as _create_super } from "@swc/helpers/_/_create_super"; | ||
import { PartialType } from "@nestjs/mapped-types"; | ||
import { CreateUserDto } from "./create-user.dto"; | ||
export var UpdateUserDto = /*#__PURE__*/ function(_PartialType) { | ||
"use strict"; | ||
_inherits(UpdateUserDto, _PartialType); | ||
var _super = _create_super(UpdateUserDto); | ||
function UpdateUserDto() { | ||
_class_call_check(this, UpdateUserDto); | ||
return _super.apply(this, arguments); | ||
return _call_super(this, UpdateUserDto, arguments); | ||
} | ||
return UpdateUserDto; | ||
}(PartialType(CreateUserDto)); |
5 changes: 2 additions & 3 deletions
5
crates/swc/tests/fixture/jsc-paths/7603/2/output/src/users/dto/update-user.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import { _ as _call_super } from "@swc/helpers/_/_call_super"; | ||
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; | ||
import { _ as _inherits } from "@swc/helpers/_/_inherits"; | ||
import { _ as _create_super } from "@swc/helpers/_/_create_super"; | ||
import { PartialType } from "@nestjs/mapped-types"; | ||
import { CreateUserDto } from "./create-user.dto"; | ||
export var UpdateUserDto = /*#__PURE__*/ function(_PartialType) { | ||
"use strict"; | ||
_inherits(UpdateUserDto, _PartialType); | ||
var _super = _create_super(UpdateUserDto); | ||
function UpdateUserDto() { | ||
_class_call_check(this, UpdateUserDto); | ||
return _super.apply(this, arguments); | ||
return _call_super(this, UpdateUserDto, arguments); | ||
} | ||
return UpdateUserDto; | ||
}(PartialType(CreateUserDto)); |
10 changes: 5 additions & 5 deletions
10
crates/swc/tests/fixture/new-target/output/class-extends-error.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.