-
Notifications
You must be signed in to change notification settings - Fork 472
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
Showing
557 changed files
with
19,833 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...sions/class/decorator/accessor/error/private/instance/accessor-deco-invalid-return-get.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,28 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/decorator/accessor-deco-invalid-return-get.case | ||
// - src/decorator/accessors/error/private/instance/cls-expr.template | ||
/*--- | ||
description: Accessor decorator cannot return invalid getter (private acessor decorator behavior in class expression) | ||
esid: prod-FieldDefinition | ||
features: [decorators, class, class-fields-private] | ||
flags: [generated] | ||
---*/ | ||
|
||
|
||
function dec() { | ||
return { | ||
get: 123 | ||
}; | ||
} | ||
|
||
|
||
function evaluate() { | ||
var C = class { | ||
@dec | ||
|
||
accessor #element; | ||
} | ||
} | ||
|
||
assert.throws(TypeError, evaluate); | ||
|
28 changes: 28 additions & 0 deletions
28
...ions/class/decorator/accessor/error/private/instance/accessor-deco-invalid-return-init.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,28 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/decorator/accessor-deco-invalid-return-init.case | ||
// - src/decorator/accessors/error/private/instance/cls-expr.template | ||
/*--- | ||
description: Accessor decorator cannot return invalid init (private acessor decorator behavior in class expression) | ||
esid: prod-FieldDefinition | ||
features: [decorators, class, class-fields-private] | ||
flags: [generated] | ||
---*/ | ||
|
||
|
||
function dec() { | ||
return { | ||
init: 123 | ||
}; | ||
} | ||
|
||
|
||
function evaluate() { | ||
var C = class { | ||
@dec | ||
|
||
accessor #element; | ||
} | ||
} | ||
|
||
assert.throws(TypeError, evaluate); | ||
|
28 changes: 28 additions & 0 deletions
28
...sions/class/decorator/accessor/error/private/instance/accessor-deco-invalid-return-set.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,28 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/decorator/accessor-deco-invalid-return-set.case | ||
// - src/decorator/accessors/error/private/instance/cls-expr.template | ||
/*--- | ||
description: Accessor decorator cannot return invalid setter (private acessor decorator behavior in class expression) | ||
esid: prod-FieldDefinition | ||
features: [decorators, class, class-fields-private] | ||
flags: [generated] | ||
---*/ | ||
|
||
|
||
function dec() { | ||
return { | ||
set: 123 | ||
}; | ||
} | ||
|
||
|
||
function evaluate() { | ||
var C = class { | ||
@dec | ||
|
||
accessor #element; | ||
} | ||
} | ||
|
||
assert.throws(TypeError, evaluate); | ||
|
26 changes: 26 additions & 0 deletions
26
...pressions/class/decorator/accessor/error/private/instance/accessor-deco-invalid-return.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,26 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/decorator/accessor-deco-invalid-return.case | ||
// - src/decorator/accessors/error/private/instance/cls-expr.template | ||
/*--- | ||
description: Accessor decorator cannot return invalid init (private acessor decorator behavior in class expression) | ||
esid: prod-FieldDefinition | ||
features: [decorators, class, class-fields-private] | ||
flags: [generated] | ||
---*/ | ||
|
||
|
||
function dec() { | ||
return 123; | ||
} | ||
|
||
|
||
function evaluate() { | ||
var C = class { | ||
@dec | ||
|
||
accessor #element; | ||
} | ||
} | ||
|
||
assert.throws(TypeError, evaluate); | ||
|
27 changes: 27 additions & 0 deletions
27
...essions/class/decorator/accessor/error/private/static/accessor-deco-invalid-return-get.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,27 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/decorator/accessor-deco-invalid-return-get.case | ||
// - src/decorator/accessors/error/private/static/cls-expr.template | ||
/*--- | ||
description: Accessor decorator cannot return invalid getter (private static acessor decorator behavior in class expression) | ||
esid: prod-FieldDefinition | ||
features: [decorators, class, class-static-fields-private] | ||
flags: [generated] | ||
---*/ | ||
|
||
|
||
function dec() { | ||
return { | ||
get: 123 | ||
}; | ||
} | ||
|
||
|
||
function evaluate() { | ||
var C = class { | ||
@dec | ||
|
||
static accessor #element; | ||
} | ||
} | ||
|
||
assert.throws(TypeError, evaluate); |
27 changes: 27 additions & 0 deletions
27
...ssions/class/decorator/accessor/error/private/static/accessor-deco-invalid-return-init.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,27 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/decorator/accessor-deco-invalid-return-init.case | ||
// - src/decorator/accessors/error/private/static/cls-expr.template | ||
/*--- | ||
description: Accessor decorator cannot return invalid init (private static acessor decorator behavior in class expression) | ||
esid: prod-FieldDefinition | ||
features: [decorators, class, class-static-fields-private] | ||
flags: [generated] | ||
---*/ | ||
|
||
|
||
function dec() { | ||
return { | ||
init: 123 | ||
}; | ||
} | ||
|
||
|
||
function evaluate() { | ||
var C = class { | ||
@dec | ||
|
||
static accessor #element; | ||
} | ||
} | ||
|
||
assert.throws(TypeError, evaluate); |
27 changes: 27 additions & 0 deletions
27
...essions/class/decorator/accessor/error/private/static/accessor-deco-invalid-return-set.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,27 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/decorator/accessor-deco-invalid-return-set.case | ||
// - src/decorator/accessors/error/private/static/cls-expr.template | ||
/*--- | ||
description: Accessor decorator cannot return invalid setter (private static acessor decorator behavior in class expression) | ||
esid: prod-FieldDefinition | ||
features: [decorators, class, class-static-fields-private] | ||
flags: [generated] | ||
---*/ | ||
|
||
|
||
function dec() { | ||
return { | ||
set: 123 | ||
}; | ||
} | ||
|
||
|
||
function evaluate() { | ||
var C = class { | ||
@dec | ||
|
||
static accessor #element; | ||
} | ||
} | ||
|
||
assert.throws(TypeError, evaluate); |
25 changes: 25 additions & 0 deletions
25
...expressions/class/decorator/accessor/error/private/static/accessor-deco-invalid-return.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,25 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/decorator/accessor-deco-invalid-return.case | ||
// - src/decorator/accessors/error/private/static/cls-expr.template | ||
/*--- | ||
description: Accessor decorator cannot return invalid init (private static acessor decorator behavior in class expression) | ||
esid: prod-FieldDefinition | ||
features: [decorators, class, class-static-fields-private] | ||
flags: [generated] | ||
---*/ | ||
|
||
|
||
function dec() { | ||
return 123; | ||
} | ||
|
||
|
||
function evaluate() { | ||
var C = class { | ||
@dec | ||
|
||
static accessor #element; | ||
} | ||
} | ||
|
||
assert.throws(TypeError, evaluate); |
28 changes: 28 additions & 0 deletions
28
...ssions/class/decorator/accessor/error/public/instance/accessor-deco-invalid-return-get.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,28 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/decorator/accessor-deco-invalid-return-get.case | ||
// - src/decorator/accessors/error/public/instance/cls-expr.template | ||
/*--- | ||
description: Accessor decorator cannot return invalid getter (public acessor decorator behavior in class expression) | ||
esid: prod-FieldDefinition | ||
features: [decorators, class, class-fields-public] | ||
flags: [generated] | ||
---*/ | ||
|
||
|
||
function dec() { | ||
return { | ||
get: 123 | ||
}; | ||
} | ||
|
||
|
||
function evaluate() { | ||
var C = class { | ||
@dec | ||
|
||
accessor element; | ||
} | ||
} | ||
|
||
assert.throws(TypeError, evaluate); | ||
|
28 changes: 28 additions & 0 deletions
28
...sions/class/decorator/accessor/error/public/instance/accessor-deco-invalid-return-init.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,28 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/decorator/accessor-deco-invalid-return-init.case | ||
// - src/decorator/accessors/error/public/instance/cls-expr.template | ||
/*--- | ||
description: Accessor decorator cannot return invalid init (public acessor decorator behavior in class expression) | ||
esid: prod-FieldDefinition | ||
features: [decorators, class, class-fields-public] | ||
flags: [generated] | ||
---*/ | ||
|
||
|
||
function dec() { | ||
return { | ||
init: 123 | ||
}; | ||
} | ||
|
||
|
||
function evaluate() { | ||
var C = class { | ||
@dec | ||
|
||
accessor element; | ||
} | ||
} | ||
|
||
assert.throws(TypeError, evaluate); | ||
|
28 changes: 28 additions & 0 deletions
28
...ssions/class/decorator/accessor/error/public/instance/accessor-deco-invalid-return-set.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,28 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/decorator/accessor-deco-invalid-return-set.case | ||
// - src/decorator/accessors/error/public/instance/cls-expr.template | ||
/*--- | ||
description: Accessor decorator cannot return invalid setter (public acessor decorator behavior in class expression) | ||
esid: prod-FieldDefinition | ||
features: [decorators, class, class-fields-public] | ||
flags: [generated] | ||
---*/ | ||
|
||
|
||
function dec() { | ||
return { | ||
set: 123 | ||
}; | ||
} | ||
|
||
|
||
function evaluate() { | ||
var C = class { | ||
@dec | ||
|
||
accessor element; | ||
} | ||
} | ||
|
||
assert.throws(TypeError, evaluate); | ||
|
26 changes: 26 additions & 0 deletions
26
...xpressions/class/decorator/accessor/error/public/instance/accessor-deco-invalid-return.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,26 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/decorator/accessor-deco-invalid-return.case | ||
// - src/decorator/accessors/error/public/instance/cls-expr.template | ||
/*--- | ||
description: Accessor decorator cannot return invalid init (public acessor decorator behavior in class expression) | ||
esid: prod-FieldDefinition | ||
features: [decorators, class, class-fields-public] | ||
flags: [generated] | ||
---*/ | ||
|
||
|
||
function dec() { | ||
return 123; | ||
} | ||
|
||
|
||
function evaluate() { | ||
var C = class { | ||
@dec | ||
|
||
accessor element; | ||
} | ||
} | ||
|
||
assert.throws(TypeError, evaluate); | ||
|
38 changes: 38 additions & 0 deletions
38
...nguage/expressions/class/decorator/accessor/private/instance/accessor-deco-returns-get.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,38 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/decorator/accessor-deco-returns-get.case | ||
// - src/decorator/accessors/standard/private/instance/cls-expr.template | ||
/*--- | ||
description: Accessor decorator can return a new getter (private acessor decorator behavior in class expression) | ||
esid: prod-FieldDefinition | ||
features: [decorators, class, class-fields-private] | ||
flags: [generated] | ||
---*/ | ||
|
||
|
||
function dec({ get }) { | ||
return { | ||
get() { | ||
assert.sameValue(get.call(this), undefined); | ||
return 123; | ||
} | ||
}; | ||
} | ||
|
||
|
||
var C = class { | ||
@dec | ||
|
||
accessor #element; | ||
|
||
getElement() { | ||
return this.#element; | ||
} | ||
|
||
setElement(value) { | ||
this.#element = value; | ||
} | ||
} | ||
|
||
var classOrInstance = new C(); | ||
|
||
assert.sameValue(classOrInstance.getElement(), 123); |
Oops, something went wrong.