arguments-callee.js (413B)
1 // Copyright (C) 2014 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 es6id: 14.5 5 description: > 6 class strict mode 7 ---*/ 8 var D = class extends function() { 9 arguments.callee; 10 } {}; 11 assert.throws(TypeError, function() { 12 Object.getPrototypeOf(D).arguments; 13 }); 14 assert.throws(TypeError, function() { 15 new D; 16 }); 17 18 reportCompare(0, 0);