Updates:
Status: WorkingAsIntended
Owner: [email protected]
Labels: Type-Bug Harmony
Comment #1 on issue 2832 by [email protected]: Proxy invariant errors
confusingly ignore toString
http://code.google.com/p/v8/issues/detail?id=2832
This is actually working as intended. We can't allow formatting an error
message to invoke a user-defined toString, since that may have observable
side effects. That was a security bug we fixed some time ago, though after
this error message was designed. The information is perhaps confusing now,
but the string can still be useful, e.g. if you construct the handler from
a constructor function:
function MyHandler() {}
MyHandler.prototype.getOwnPropertyDescriptor = function() { return
{value: 0} }
Object.getOwnPropertyDescriptor(Proxy.create(new MyHandler), 'x')
==> TypeError: Proxy handler #<MyHandler> returned non-configurable
descriptor for property 'x' from 'getOwnPropertyDescriptor' trap
Same applies to all other errors outputting objects.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.