mirror of https://github.com/tc39/test262.git
Merge branch 'private-methods-delete-error' of git://github.com/jbhoosreddy/test262 into jbhoosreddy-private-methods-delete-error
* 'private-methods-delete-error' of git://github.com/jbhoosreddy/test262: revisions fixes test: Early error private methods delete (#1343)
This commit is contained in:
commit
ebbf19b156
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Bloomberg LP. 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
|
||||||
|
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) 2018 Bloomberg LP. 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
|
||||||
|
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) 2018 Bloomberg LP. 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
|
||||||
|
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) 2018 Bloomberg LP. 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
|
||||||
|
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() {}
|
|
@ -2,7 +2,7 @@
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
desc: Syntax error if you call delete on call expressions . privatename
|
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
|
||||||
template: delete-error
|
template: delete-error
|
||||||
features: [class, class-fields-private, class-fields-public]
|
features: [class, class-fields-private, class-fields-public]
|
||||||
---*/
|
---*/
|
|
@ -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: It's a SyntaxError if delete operator is applied to MemberExpression.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: It's a SyntaxError if delete operator is applied to MemberExpression.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: It's a SyntaxError if delete operator is applied to MemberExpression.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: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
|
||||||
|
template: delete-error
|
||||||
|
features: [class-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- expression
|
||||||
|
this.#m
|
||||||
|
|
||||||
|
//- functiondeclaration
|
||||||
|
#m() {}
|
|
@ -2,7 +2,7 @@
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
desc: Syntax error if you call delete on member expressions . privatename
|
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
|
||||||
template: delete-error
|
template: delete-error
|
||||||
features: [class-fields-private]
|
features: [class-fields-private]
|
||||||
---*/
|
---*/
|
Loading…
Reference in New Issue