Skip to content
Snippets Groups Projects
Commit 0575d4d7 authored by Leo Balter's avatar Leo Balter
Browse files

Add cases for early error deleting private names

parent 0475c127
No related branches found
No related tags found
No related merge requests found
Showing
with 148 additions and 22 deletions
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: >
It's a SyntaxError if delete operator is applied to CallExpression.PrivateName
accessor get method
template: delete-error
features: [class-methods-private, class-fields-public]
---*/
//- infieldsetup
g = this.f;
//- infunctionsetup
var g = this.f;
//- expression
g().#m
//- functiondeclaration
f() {
return this;
}
get #m() {}
\ No newline at end of file
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: >
It's a SyntaxError if delete operator is applied to CallExpression.PrivateName
accessor set method
template: delete-error
features: [class, class-fields-private, class-methods-private, class-fields-public]
---*/
//- infieldsetup
g = this.f;
//- infunctionsetup
var g = this.f;
//- expression
g().#m
//- functiondeclaration
f() {
return this;
}
set #m(arg) {}
\ No newline at end of file
......@@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
desc: >
It's a SyntaxError if delete operator is applied to CallExpression.PrivateName
async generator
template: delete-error
features: [class, class-fields-private, class-methods-private, class-fields-public]
features: [class-methods-private, async-iteration]
---*/
//- infieldsetup
......
......@@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
desc: >
It's a SyntaxError if delete operator is applied to CallExpression.PrivateName
async method
template: delete-error
features: [class, class-fields-private, class-methods-private, class-fields-public]
features: [class-methods-private, async-functions]
---*/
//- infieldsetup
......
......@@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
desc: >
It's a SyntaxError if delete operator is applied to CallExpression.PrivateName
generator
template: delete-error
features: [class, class-fields-private, class-methods-private, class-fields-public]
features: [class-methods-private, generators]
---*/
//- infieldsetup
......
......@@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
desc: >
It's a SyntaxError if delete operator is applied to CallExpression.PrivateName
private ordinary method
template: delete-error
features: [class, class-fields-private, class-methods-private, class-fields-public]
features: [class-methods-private]
---*/
//- infieldsetup
......
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: >
It's a SyntaxError if delete operator is applied to CallExpression.PrivateName
no referencing class element
template: delete-error
---*/
//- infieldsetup
g = this.f;
//- infunctionsetup
var g = this.f;
//- expression
g().#m
//- functiondeclaration
f() {
return this;
}
......@@ -2,9 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
desc: >
It's a SyntaxError if delete operator is applied to CallExpression.PrivateName
private field
template: delete-error
features: [class, class-fields-private, class-fields-public]
---*/
//- infieldsetup
......
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: >
It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
accessor get method
template: delete-error
features: [class-methods-private]
---*/
//- expression
this.#m
//- functiondeclaration
get #m() {}
\ No newline at end of file
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: >
It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
accessor set method
template: delete-error
features: [class-methods-private]
---*/
//- expression
this.#m
//- functiondeclaration
set #m(arg) {}
\ No newline at end of file
......@@ -2,13 +2,15 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
desc: >
It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
async generator
template: delete-error
features: [class-methods-private]
features: [class-methods-private, async-iteration]
---*/
//- expression
this.#m
//- functiondeclaration
async *#m() {}
\ No newline at end of file
async *#m() {}
......@@ -2,13 +2,15 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
desc: >
It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
async method
template: delete-error
features: [class-methods-private]
features: [class-methods-private, async-functions]
---*/
//- expression
this.#m
//- functiondeclaration
async #m() {}
\ No newline at end of file
async #m() {}
......@@ -2,13 +2,15 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
desc: >
It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
generator
template: delete-error
features: [class-methods-private]
features: [class-methods-private, generators]
---*/
//- expression
this.#m
//- functiondeclaration
*#m() {}
\ No newline at end of file
*#m() {}
......@@ -2,7 +2,9 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
desc: >
It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
private ordinary method
template: delete-error
features: [class-methods-private]
---*/
......
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: >
It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
no referencing class element
template: delete-error
---*/
//- expression
this.#m
......@@ -2,9 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
desc: >
It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
private field
template: delete-error
features: [class-fields-private]
---*/
//- expression
......
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