mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
test: Early error private methods delete (#1343)
This commit is contained in:
parent
6bedd8f1c6
commit
227a85b9d3
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 20178 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: Syntax error if you call delete on call expressions . private 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;
|
||||||
|
}
|
||||||
|
async *#m() {}
|
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 20178 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: Syntax error if you call delete on call expressions . private 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;
|
||||||
|
}
|
||||||
|
async #m() {}
|
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 20178 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: Syntax error if you call delete on call expressions . private 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;
|
||||||
|
}
|
||||||
|
* #m() {}
|
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 20178 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: Syntax error if you call delete on call expressions . private 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;
|
||||||
|
}
|
||||||
|
#m() {}
|
@ -0,0 +1,14 @@
|
|||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: Syntax error if you call delete on member expressions . privatename
|
||||||
|
template: delete-error
|
||||||
|
features: [class-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- expression
|
||||||
|
this.#m
|
||||||
|
|
||||||
|
//- functiondeclaration
|
||||||
|
async *#m() {}
|
@ -0,0 +1,14 @@
|
|||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: Syntax error if you call delete on member expressions . privatename
|
||||||
|
template: delete-error
|
||||||
|
features: [class-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- expression
|
||||||
|
this.#m
|
||||||
|
|
||||||
|
//- functiondeclaration
|
||||||
|
async #m() {}
|
@ -0,0 +1,14 @@
|
|||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: Syntax error if you call delete on member expressions . privatename
|
||||||
|
template: delete-error
|
||||||
|
features: [class-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- expression
|
||||||
|
this.#m
|
||||||
|
|
||||||
|
//- functiondeclaration
|
||||||
|
*#m() {}
|
@ -0,0 +1,14 @@
|
|||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: Syntax error if you call delete on member expressions . privatename
|
||||||
|
template: delete-error
|
||||||
|
features: [class-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- expression
|
||||||
|
this.#m
|
||||||
|
|
||||||
|
//- functiondeclaration
|
||||||
|
#m() {}
|
Loading…
x
Reference in New Issue
Block a user