blob: b7b56f4033e7ebb4f3230e77833a439b35871a01 [file] [edit]
// 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/statements/class/elements/arrow-body-derived-cls-indirect-
name: indirect eval
features: [class, class-fields-public]
---*/
class A {}
class C extends A {
x = (0, eval)('/*{ arrow-body }*/;');
}
assert.throws(SyntaxError, function() {
new C().x();
});