Index: test/mjsunit/es6/classes.js |
diff --git a/test/mjsunit/es6/classes.js b/test/mjsunit/es6/classes.js |
index fb77dbb8e4b01bb273512b215763dadbb1077661..816d113263a9af9c150ea582d96fceeb3130f54e 100644 |
--- a/test/mjsunit/es6/classes.js |
+++ b/test/mjsunit/es6/classes.js |
@@ -164,14 +164,15 @@ |
SyntaxError); |
var D = class extends function() { |
- arguments.caller; |
+ this.args = arguments; |
} {}; |
assertThrows(function() { |
Object.getPrototypeOf(D).arguments; |
}, TypeError); |
- assertThrows(function() { |
- new D; |
- }, TypeError); |
+ var e = new D(); |
+ assertThrows(() => e.args.callee, TypeError); |
+ assertEquals(undefined, Object.getOwnPropertyDescriptor(e.args, 'caller')); |
+ assertFalse('caller' in e.args); |
})(); |