summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/object/not-defined.js
blob: b8a7d4d33c05ed6f5e9f6f78b2d784c86150ddcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 12.2.5
description: >
    Throws when IdentifierReference is undefined
---*/

assert.throws(ReferenceError, function() {
  var o = {notDefined};
});

reportCompare(0, 0);