mirror of
https://github.com/tc39/test262.git
synced 2025-11-28 17:43:19 +01:00
22 lines
542 B
Plaintext
22 lines
542 B
Plaintext
// 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);
|