// Copyright (C) 2017 Valerie Young. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-performeval-rules-in-initializer path: language/expressions/class/fields-indirect- name: indirect eval ---*/ var executed = false; var C = class { x = (0, eval)('executed = true; /*{ initializer }*/;'); } assert.throws(/*{ executionerror }*/, function() { new C(); }); assert.sameValue(executed, true);