archives

« Bugzilla Issues Index

#2206 — 12.13.4, 13.2.2.3, 13.2.1.6, 13.2.3.5, 13.2.3.6: Missing HasOwnProperty("name") check for anonymous class expression


12.13.4, 13.2.2.3, 13.2.1.6, 13.2.3.5 and 13.2.3.6 need to perform the same HasOwnProperty("name") check for anonymous class expressions as already done in 14.5.16.


js> c = class {static get name(){}}
java.lang.AssertionError
at com.github.anba.es6draft.runtime.types.builtins.OrdinaryFunction.SetFunctionName(OrdinaryFunction.java:472)

js> var [c = class {static get name(){}}] = []
java.lang.AssertionError
at com.github.anba.es6draft.runtime.types.builtins.OrdinaryFunction.SetFunctionName(OrdinaryFunction.java:472)

js> var {c = class {static get name(){}}} = []
java.lang.AssertionError
at com.github.anba.es6draft.runtime.types.builtins.OrdinaryFunction.SetFunctionName(OrdinaryFunction.java:472)

js> var c = class {static get name(){}}
java.lang.AssertionError
at com.github.anba.es6draft.runtime.types.builtins.OrdinaryFunction.SetFunctionName(OrdinaryFunction.java:472)


1 out of 6 ... could have been worse....

fixed in rev21 editor's draft


fixed in rev21 draft