mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 13:04:39 +02:00
Restore & update existing static class field cases/templates
This commit is contained in:
parent
53f847b1bc
commit
06aaef8ecd
@ -0,0 +1,16 @@
|
|||||||
|
// Copyright (C) 2017 Valerie Young. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
path: language/statements/class/fields-initializer-
|
||||||
|
name: early error -- static ClassElementName Initializer
|
||||||
|
negative:
|
||||||
|
type: SyntaxError
|
||||||
|
phase: early
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
static /*{ propname }*/ = 0;
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
// Copyright (C) 2017 Valerie Young. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
path: language/statements/class/fields-prop-name-
|
||||||
|
name: early error -- static ClassElementName
|
||||||
|
negative:
|
||||||
|
type: SyntaxError
|
||||||
|
phase: early
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
static /*{ propname }*/;
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
// Copyright (C) 2017 Valerie Young. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
path: language/expressions/class/fields-initializer-
|
||||||
|
name: early error -- static ClassElementName Initializer
|
||||||
|
negative:
|
||||||
|
type: SyntaxError
|
||||||
|
phase: early
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static /*{ propname }*/ = 0;
|
||||||
|
};
|
@ -0,0 +1,16 @@
|
|||||||
|
// Copyright (C) 2017 Valerie Young. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
path: language/expressions/class/fields-prop-name-
|
||||||
|
name: early error -- static ClassElementName
|
||||||
|
negative:
|
||||||
|
type: SyntaxError
|
||||||
|
phase: early
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static /*{ propname }*/;
|
||||||
|
};
|
11
src/class-fields/static-private-fields-forbidden.case
Normal file
11
src/class-fields/static-private-fields-forbidden.case
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// Copyright (C) 2017 Valerie Young. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: static private class fields forbidden
|
||||||
|
features: [class, class-fields-private]
|
||||||
|
template: propname-error-static
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- propname
|
||||||
|
#field
|
11
src/class-fields/static-public-fields-forbidden.case
Normal file
11
src/class-fields/static-public-fields-forbidden.case
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// Copyright (C) 2017 Valerie Young. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: static public class fields forbidden
|
||||||
|
features: [class, class-fields-public]
|
||||||
|
template: propname-error-static
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- propname
|
||||||
|
field
|
@ -0,0 +1,18 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-fields/static-private-fields-forbidden.case
|
||||||
|
// - src/class-fields/propname-error-static/cls-expr-static-field-initializer.template
|
||||||
|
/*---
|
||||||
|
description: static private class fields forbidden (early error -- static ClassElementName Initializer)
|
||||||
|
features: [class, class-fields-private]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: early
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static #field = 0;
|
||||||
|
};
|
@ -0,0 +1,18 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-fields/static-public-fields-forbidden.case
|
||||||
|
// - src/class-fields/propname-error-static/cls-expr-static-field-initializer.template
|
||||||
|
/*---
|
||||||
|
description: static public class fields forbidden (early error -- static ClassElementName Initializer)
|
||||||
|
features: [class, class-fields-public]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: early
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static field = 0;
|
||||||
|
};
|
@ -0,0 +1,18 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-fields/static-private-fields-forbidden.case
|
||||||
|
// - src/class-fields/propname-error-static/cls-expr-static-literal-name.template
|
||||||
|
/*---
|
||||||
|
description: static private class fields forbidden (early error -- static ClassElementName)
|
||||||
|
features: [class, class-fields-private]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: early
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static #field;
|
||||||
|
};
|
@ -0,0 +1,18 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-fields/static-public-fields-forbidden.case
|
||||||
|
// - src/class-fields/propname-error-static/cls-expr-static-literal-name.template
|
||||||
|
/*---
|
||||||
|
description: static public class fields forbidden (early error -- static ClassElementName)
|
||||||
|
features: [class, class-fields-public]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: early
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static field;
|
||||||
|
};
|
@ -0,0 +1,18 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-fields/static-private-fields-forbidden.case
|
||||||
|
// - src/class-fields/propname-error-static/cls-decl-static-field-initializer.template
|
||||||
|
/*---
|
||||||
|
description: static private class fields forbidden (early error -- static ClassElementName Initializer)
|
||||||
|
features: [class, class-fields-private]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: early
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
static #field = 0;
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-fields/static-public-fields-forbidden.case
|
||||||
|
// - src/class-fields/propname-error-static/cls-decl-static-field-initializer.template
|
||||||
|
/*---
|
||||||
|
description: static public class fields forbidden (early error -- static ClassElementName Initializer)
|
||||||
|
features: [class, class-fields-public]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: early
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
static field = 0;
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-fields/static-private-fields-forbidden.case
|
||||||
|
// - src/class-fields/propname-error-static/cls-decl-static-literal-name.template
|
||||||
|
/*---
|
||||||
|
description: static private class fields forbidden (early error -- static ClassElementName)
|
||||||
|
features: [class, class-fields-private]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: early
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
static #field;
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-fields/static-public-fields-forbidden.case
|
||||||
|
// - src/class-fields/propname-error-static/cls-decl-static-literal-name.template
|
||||||
|
/*---
|
||||||
|
description: static public class fields forbidden (early error -- static ClassElementName)
|
||||||
|
features: [class, class-fields-public]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: early
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
static field;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user