https://codereview.chromium.org/593073002/diff/20001/src/runtime.cc
File src/runtime.cc (right):
https://codereview.chromium.org/593073002/diff/20001/src/runtime.cc#newcode2118
src/runtime.cc:2118: if (!proto->IsJSReceiver()) return
isolate->heap()->undefined_value();
On 2014/09/24 16:23:46, Dmitry Lomov (chromium) wrote:
On 2014/09/24 14:53:57, arv wrote:
> Is this correct? I believe the following should work
>
> (function() {
> super.x = 1;
> }.toMethod({
> set x(v) { print(v); {
> }).call(42))
>
> and print 1
I have a bit of a hard time deciphering what you are trying to say. At
the very
least,
super.x = 1 is [[HomeObject]].__proto__.[[Set]]('x',1,this), not
[[HomeObject]].[[Set]]('x',1,this), so the setter will not execute.
I was trying to give an example where this is not an object, but a
primitive.
https://codereview.chromium.org/593073002/
--
--
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/d/optout.