blob: 1562b874a813adca45d1114f56dd5b45511e184c [file] [log] [blame]
// This file was procedurally generated from the following sources:
// - src/class-elements/eval-contains-arguments.case
// - src/class-elements/initializer-indirect-eval-arguments/cls-decl-fields-indirect-eval-nested.template
/*---
description: No error if `arguments` in StatementList of eval (indirect eval)
esid: sec-performeval-rules-in-initializer
features: [class, class-fields-public]
flags: [generated, noStrict]
info: |
For indirect eval, the "Additional Early Error Rules for Eval Inside Initializer"
(in #sec-performeval-rules-in-initializer) are NOT applicable.
---*/
var arguments = 1;
class C {
x = () => {
var t = () => (0, eval)('arguments;');
return t();
}
}
assert.sameValue(new C().x(), arguments);