-
Notifications
You must be signed in to change notification settings - Fork 10
Function representation for built-in functions from symbol-valued properties? #29
Comments
Is this something we want? If this is not consistent, would implementations be willing to change this? |
To be a bit more specific than "prints in most engines some variations [...]". JSC and SpiderMonkey both print:
V8 prints:
Chakra prints:
|
Again, is that something we find useful? Do users of the language actually want to see function get [Symbol.species]() { [native code] } or is that just confusing them? |
If it is confusing, can we find a better representation? For example if we end up with using (I guess what I really want to say is, that |
If we're okay with dropping |
If user-land getter will still keep |
@hax It won't. It looks like a getter. |
So you mean this proposal will make |
Yes, something else. |
It seems there may be expectation that
Am I right? |
@michaelficarra I hope such change would be more explicit in somewhere. And I don't think #17 answered my question, it didn't mention getter/setter at all.
Sorry, I didn't know it. And it seems not complete shipped in FF because Object.getOwnPropertyDescriptor(document.__proto__, 'head').get.toString() still returns "function get head() { [native code] }" And even now, I am still confused, while FF already drop
|
The proposal states in the introduction as one of its goals,
Additionally, nearly the entire spec text deals with saving the source text slice. I don't know how one could read the proposal and not get this.
Yes that is exactly what this open issue is about: built-in getters. My response to you was referring to getters defined in your program because you said "user-land getter".
In my quote, I was talking to @anba about built-in getters, which again is what this currently open issue is all about. |
prints in most engines some variations of:
which doesn't match the current requirement:
because
"[Symbol.match]"
and"get [Symbol.species]"
can't be matched asIdentifierName
.The text was updated successfully, but these errors were encountered: