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