Index: test/mjsunit/harmony/classes.js |
diff --git a/test/mjsunit/harmony/classes.js b/test/mjsunit/harmony/classes.js |
index 4efdaa179758d234a047597f2e42a4963a297c16..c8c25ff63bd74b37a42163c753d5f10055528dc2 100644 |
--- a/test/mjsunit/harmony/classes.js |
+++ b/test/mjsunit/harmony/classes.js |
@@ -159,6 +159,15 @@ |
assertThrows('class C extends function B() { with ({}); return B; }() {}', |
SyntaxError); |
+ var D = class extends function() { |
+ arguments.caller; |
+ } {}; |
+ assertThrows(function() { |
+ Object.getPrototypeOf(D).arguments; |
+ }, TypeError); |
+ assertThrows(function() { |
+ new D; |
+ }, TypeError); |
})(); |