// Copyright (C) 2020 Rick Waldron. 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/elements/nested-private-derived-cls-indirect- name: indirect eval features: [class, class-fields-private] ---*/ var executed = false; var A = class {} var C = class extends A { #x = (0, eval)('executed = true; /*{ initializer }*/;'); } assert.throws(SyntaxError, function() { new C(); }); assert.sameValue(executed, false);