Restore & update existing static class field cases/templates

This commit is contained in:
Rick Waldron 2017-12-21 16:35:05 -05:00
parent 53f847b1bc
commit 06aaef8ecd
14 changed files with 230 additions and 0 deletions

View File

@ -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;
}

View File

@ -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 }*/;
}

View File

@ -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;
};

View File

@ -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 }*/;
};

View 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

View 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

View File

@ -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;
};

View File

@ -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;
};

View File

@ -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;
};

View File

@ -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;
};

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}