Check for prototype bound name in class static accessors (#4257)
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai daniel.batyai@h-lab.eu
This commit is contained in:
@@ -49,6 +49,17 @@ must_throw("class class {}");
|
||||
must_throw("class A { constructor() {} this.a = 5 }");
|
||||
must_throw("class A { constructor() {} constructor() {} }");
|
||||
must_throw("class A { static prototype() {} }");
|
||||
must_throw("class A { static get prototype() {} }");
|
||||
must_throw("class A { static set prototype() {} }");
|
||||
must_throw("class A { static prototyp\u{0065}() {} }");
|
||||
must_throw("class A { static get prototyp\u{0065}() {} }");
|
||||
must_throw("class A { static set prototyp\u{0065}() {} }");
|
||||
must_throw("class A { static 'prototype'() {} }");
|
||||
must_throw("class A { static get 'prototype'() {} }");
|
||||
must_throw("class A { static set 'prototype'() {} }");
|
||||
must_throw("class A { static 'prototyp\u{0065}'() {} }");
|
||||
must_throw("class A { static get 'prototyp\u{0065}'() {} }");
|
||||
must_throw("class A { static set 'prototyp\u{0065}'() {} }");
|
||||
must_throw("class A { get constructor() {} }");
|
||||
must_throw("class A { set constructor() {} }");
|
||||
must_throw("class A {}; A()");
|
||||
|
||||
Reference in New Issue
Block a user