summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/object/method-definition/name-prop-name-eval-error.js
blob: 4db4f964cd5a3d257076015943f13bc70a01eb10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
    Errors thrown during method definition are forwarded to the runtime.
es6id: 14.3.8
---*/

assert.throws(Test262Error, function() {
  ({
    [(function() { throw new Test262Error(); }())]() {}
  });
});

reportCompare(0, 0);