blob: 24696a4b57af91b539a41631e2adef48fb5c9491 [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/expressions/class/elements/arrow-body-private-indirect-
name: indirect eval
features: [class, class-fields-private]
---*/
var C = class {
#x = (0, eval)('/*{ arrow-body }*/;');
}
assert.throws(SyntaxError, function() {
new C().x();
});