Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
throw "Destructuring to a super field is not supported yet."
- Loading branch information
Showing
34 changed files
with
266 additions
and
2 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
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: 5 additions & 0 deletions
5
...oposal-class-properties/test/fixtures/public/super-destructuring-array-pattern-1/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Foo { | ||
constructor(props) { | ||
;([x, ...super.client] = props); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...al-class-properties/test/fixtures/public/super-destructuring-array-pattern-1/options.json
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,10 @@ | ||
{ | ||
"plugins": [ | ||
"external-helpers", | ||
"proposal-class-properties", | ||
"transform-classes", | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
], | ||
"throws": "Destructuring to a super field is not supported yet." | ||
} |
5 changes: 5 additions & 0 deletions
5
...proposal-class-properties/test/fixtures/public/super-destructuring-array-pattern/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Foo { | ||
constructor(props) { | ||
;([super.client] = props); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...osal-class-properties/test/fixtures/public/super-destructuring-array-pattern/options.json
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,10 @@ | ||
{ | ||
"plugins": [ | ||
"external-helpers", | ||
"proposal-class-properties", | ||
"transform-classes", | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
], | ||
"throws": "Destructuring to a super field is not supported yet." | ||
} |
5 changes: 5 additions & 0 deletions
5
...posal-class-properties/test/fixtures/public/super-destructuring-object-pattern-1/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Foo { | ||
constructor(props) { | ||
;({ x, ...super.client } = props) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...l-class-properties/test/fixtures/public/super-destructuring-object-pattern-1/options.json
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,10 @@ | ||
{ | ||
"plugins": [ | ||
"external-helpers", | ||
"proposal-class-properties", | ||
"transform-classes", | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
], | ||
"throws": "Destructuring to a super field is not supported yet." | ||
} |
5 changes: 5 additions & 0 deletions
5
...roposal-class-properties/test/fixtures/public/super-destructuring-object-pattern/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Foo { | ||
constructor(props) { | ||
;({ client: super.client } = props) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...sal-class-properties/test/fixtures/public/super-destructuring-object-pattern/options.json
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,10 @@ | ||
{ | ||
"plugins": [ | ||
"external-helpers", | ||
"proposal-class-properties", | ||
"transform-classes", | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
], | ||
"throws": "Destructuring to a super field is not supported yet." | ||
} |
5 changes: 5 additions & 0 deletions
5
...plugin-transform-classes/test/fixtures/loose/super-destructuring-array-pattern-1/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Foo { | ||
foo(props) { | ||
;([x, ...super.client] = props); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...lugin-transform-classes/test/fixtures/loose/super-destructuring-array-pattern-1/output.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
var Foo = | ||
/*#__PURE__*/ | ||
function () { | ||
"use strict"; | ||
|
||
function Foo() {} | ||
|
||
var _proto = Foo.prototype; | ||
|
||
_proto.foo = function foo(props) { | ||
; | ||
[x, ...this.client] = props; | ||
}; | ||
|
||
return Foo; | ||
}(); |
5 changes: 5 additions & 0 deletions
5
...l-plugin-transform-classes/test/fixtures/loose/super-destructuring-array-pattern/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Foo { | ||
foo(props) { | ||
;([super.client] = props); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...-plugin-transform-classes/test/fixtures/loose/super-destructuring-array-pattern/output.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
var Foo = | ||
/*#__PURE__*/ | ||
function () { | ||
"use strict"; | ||
|
||
function Foo() {} | ||
|
||
var _proto = Foo.prototype; | ||
|
||
_proto.foo = function foo(props) { | ||
; | ||
[this.client] = props; | ||
}; | ||
|
||
return Foo; | ||
}(); |
5 changes: 5 additions & 0 deletions
5
...lugin-transform-classes/test/fixtures/loose/super-destructuring-object-pattern-1/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Foo { | ||
foo(props) { | ||
;({ x, ...super.client } = props) | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...ugin-transform-classes/test/fixtures/loose/super-destructuring-object-pattern-1/output.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
var Foo = | ||
/*#__PURE__*/ | ||
function () { | ||
"use strict"; | ||
|
||
function Foo() {} | ||
|
||
var _proto = Foo.prototype; | ||
|
||
_proto.foo = function foo(props) { | ||
; | ||
({ | ||
x, | ||
...this.client | ||
} = props); | ||
}; | ||
|
||
return Foo; | ||
}(); |
5 changes: 5 additions & 0 deletions
5
...-plugin-transform-classes/test/fixtures/loose/super-destructuring-object-pattern/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Foo { | ||
foo(props) { | ||
;({ client: super.client } = props) | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...plugin-transform-classes/test/fixtures/loose/super-destructuring-object-pattern/output.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
var Foo = | ||
/*#__PURE__*/ | ||
function () { | ||
"use strict"; | ||
|
||
function Foo() {} | ||
|
||
var _proto = Foo.prototype; | ||
|
||
_proto.foo = function foo(props) { | ||
; | ||
({ | ||
client: this.client | ||
} = props); | ||
}; | ||
|
||
return Foo; | ||
}(); |
5 changes: 5 additions & 0 deletions
5
...-plugin-transform-classes/test/fixtures/spec/super-destructuring-array-pattern-1/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Foo { | ||
constructor(props) { | ||
;([x, ...super.client] = props); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...gin-transform-classes/test/fixtures/spec/super-destructuring-array-pattern-1/options.json
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,10 @@ | ||
{ | ||
"plugins": [ | ||
"external-helpers", | ||
"transform-function-name", | ||
"transform-classes", | ||
"transform-spread", | ||
"transform-block-scoping" | ||
], | ||
"throws": "Destructuring to a super field is not supported yet." | ||
} |
5 changes: 5 additions & 0 deletions
5
...el-plugin-transform-classes/test/fixtures/spec/super-destructuring-array-pattern/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Foo { | ||
constructor(props) { | ||
;([super.client] = props); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...lugin-transform-classes/test/fixtures/spec/super-destructuring-array-pattern/options.json
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,10 @@ | ||
{ | ||
"plugins": [ | ||
"external-helpers", | ||
"transform-function-name", | ||
"transform-classes", | ||
"transform-spread", | ||
"transform-block-scoping" | ||
], | ||
"throws": "Destructuring to a super field is not supported yet." | ||
} |
5 changes: 5 additions & 0 deletions
5
...plugin-transform-classes/test/fixtures/spec/super-destructuring-object-pattern-1/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Foo { | ||
constructor(props) { | ||
;({ x, ...super.client } = props) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...in-transform-classes/test/fixtures/spec/super-destructuring-object-pattern-1/options.json
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,10 @@ | ||
{ | ||
"plugins": [ | ||
"external-helpers", | ||
"transform-function-name", | ||
"transform-classes", | ||
"transform-spread", | ||
"transform-block-scoping" | ||
], | ||
"throws": "Destructuring to a super field is not supported yet." | ||
} |
5 changes: 5 additions & 0 deletions
5
...l-plugin-transform-classes/test/fixtures/spec/super-destructuring-object-pattern/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Foo { | ||
constructor(props) { | ||
;({ client: super.client } = props) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...ugin-transform-classes/test/fixtures/spec/super-destructuring-object-pattern/options.json
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,10 @@ | ||
{ | ||
"plugins": [ | ||
"external-helpers", | ||
"transform-function-name", | ||
"transform-classes", | ||
"transform-spread", | ||
"transform-block-scoping" | ||
], | ||
"throws": "Destructuring to a super field is not supported yet." | ||
} |
5 changes: 5 additions & 0 deletions
5
...form-object-super/test/fixtures/object-super/super-destructuring-array-pattern-1/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const foo = { | ||
bar(props) { | ||
;([x, ...super.client] = props); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...-object-super/test/fixtures/object-super/super-destructuring-array-pattern-1/options.json
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,8 @@ | ||
{ | ||
"plugins": [ | ||
"external-helpers", | ||
"transform-object-super", | ||
"transform-shorthand-properties" | ||
], | ||
"throws": "Destructuring to a super field is not supported yet." | ||
} |
5 changes: 5 additions & 0 deletions
5
...nsform-object-super/test/fixtures/object-super/super-destructuring-array-pattern/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const foo = { | ||
bar(props) { | ||
;([super.client] = props); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...rm-object-super/test/fixtures/object-super/super-destructuring-array-pattern/options.json
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,8 @@ | ||
{ | ||
"plugins": [ | ||
"external-helpers", | ||
"transform-object-super", | ||
"transform-shorthand-properties" | ||
], | ||
"throws": "Destructuring to a super field is not supported yet." | ||
} |
5 changes: 5 additions & 0 deletions
5
...orm-object-super/test/fixtures/object-super/super-destructuring-object-pattern-1/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const foo = { | ||
bar(props) { | ||
;({ x, ...super.client } = props) | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...object-super/test/fixtures/object-super/super-destructuring-object-pattern-1/options.json
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,8 @@ | ||
{ | ||
"plugins": [ | ||
"external-helpers", | ||
"transform-object-super", | ||
"transform-shorthand-properties" | ||
], | ||
"throws": "Destructuring to a super field is not supported yet." | ||
} |
5 changes: 5 additions & 0 deletions
5
...sform-object-super/test/fixtures/object-super/super-destructuring-object-pattern/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const foo = { | ||
bar(props) { | ||
;({ client: super.client } = props) | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...m-object-super/test/fixtures/object-super/super-destructuring-object-pattern/options.json
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,8 @@ | ||
{ | ||
"plugins": [ | ||
"external-helpers", | ||
"transform-object-super", | ||
"transform-shorthand-properties" | ||
], | ||
"throws": "Destructuring to a super field is not supported yet." | ||
} |