Skip to content
Snippets Groups Projects
Commit 06aaef8e authored by Rick Waldron's avatar Rick Waldron
Browse files

Restore & update existing static class field cases/templates

parent 53f847b1
No related branches found
No related tags found
No related merge requests found
Showing
with 230 additions and 0 deletions
// 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;
}
// 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 }*/;
}
// 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;
};
// 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 }*/;
};
// 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
// 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
// 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;
};
// 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;
};
// 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;
};
// 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;
};
// 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;
}
// 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;
}
// 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;
}
// 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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment