1
Vote

The test 15.2.3.3-4-188 assumes Function.prototype.name does not exist

description

The test 15.2.3.3-4-188 checks that getOwnPropertyDescriptor returns undefined for a property that does not exist. However, the property it checks (Function.prototype.name) - while non-standard - is implemented in Firefox and Chrome (and probably others). The standard does not prohibit extensions like this; please choose a property name that is less likely to actually exist (how about Function.prototype.foobar?).

comments