ecma262
ecma262 copied to clipboard
Normative: Add missing function name for Iterator.prototype[Symbol.toStringTag] accessors
The function name must be explicitly specified for methods whose property key is a Symbol value.
JSC doesn't assign the expected name:
>>> Object.getOwnPropertyDescriptor(Iterator.prototype, Symbol.toStringTag).get.name
"get "
>>> Object.getOwnPropertyDescriptor(Iterator.prototype, Symbol.toStringTag).set.name
"set "
oof. does test262 not have tests covering the name?
I don't think there's test262 coverage for this. Or at least I don't see any coverage in https://github.com/tc39/test262/tree/main/test/built-ins/Iterator/prototype/Symbol.toStringTag. (I'm currently exploring if it's possible to generate tests for "name" and "length" properties of built-in functions, that's why I found this bug.)