aboutsummaryrefslogtreecommitdiffstats
path: root/src/accessor-names/computed-err-evaluation.case
blob: f2d4db891736cac339779d7e46abc5521b673003 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2017 Mike Pennisi. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: Abrupt completion when evaluating expression
template: error
info: |
  12.2.6.7 Runtime Semantics: Evaluation

  ComputedPropertyName : [ AssignmentExpression ]

  1. Let exprValue be the result of evaluating AssignmentExpression.
  2. Let propName be ? GetValue(exprValue).
---*/

//- setup
var thrower = function() {
  throw new Test262Error();
};

//- error
Test262Error
//- name
thrower()