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

reportCompare(0, 0);