Debian Codegraph @

js/src/tests/test262/language/statements/class/definition/constructor-strict-by-default.js

raw
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 constructor strict
7 ---*/
8 class C {
9 constructor() {
10 assert.throws(ReferenceError, function() {
11 nonExistingBinding = 42;
12 });
13 }
14 }
15 new C();
16
17 reportCompare(0, 0);