https://codereview.chromium.org/1135243004/diff/100001/test/mjsunit/harmony/object-literals-super.js
File test/mjsunit/harmony/object-literals-super.js (right):

https://codereview.chromium.org/1135243004/diff/100001/test/mjsunit/harmony/object-literals-super.js#newcode145
test/mjsunit/harmony/object-literals-super.js:145: eval() {
On 2015/05/15 14:59:35, wingo wrote:
This eval is not in the scope of the method?  Strange; some day I'll
understand
all of ES6...

The method name does not create a binding. The motivation was that
having a binding to the method would not be correct since the method
does not work without being invoked with the correct this.

  method() {}

is thus similar to

  method: function() {}

and not

  method: function method() {
    assert(this instanceof Something)
    method();  // will fail
    method.call(this);  // ok, ignoring the iloop
    this.method();  // is better
  }

https://codereview.chromium.org/1135243004/

--
--
v8-dev mailing list
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to