PTAL

https://codereview.chromium.org/593073002/diff/40001/test/mjsunit/harmony/super.js
File test/mjsunit/harmony/super.js (right):

https://codereview.chromium.org/593073002/diff/40001/test/mjsunit/harmony/super.js#newcode144
test/mjsunit/harmony/super.js:144: }());
On 2014/09/25 15:39:24, arv wrote:
Can you add a test of a strict function, used as a method that
contains super
that is invoked with a value as this. Like I asked about...

function f() {
   'use strict';
   assertEquals(42, this);
   assertEquals(String.prototype.toString, super.toString);
   assertThrows('super.toString()',TypeError);
}
var g = f.toMethod(new String());
g.call(42);

Done.

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.

Reply via email to