Parsing error

Are there specific settings that allow me to parse the following code?
function test() {
(arguments = x)[1] = {};
}
function test() {
(arguments = x)[1] = {};
}
No description
2 Replies
Levi
Levi5w ago
You must be parsing as module. Parsing as script works for me I don’t believe that code is valid in modules
herman.3682
herman.3682OP2w ago
Yes, you're right. It works now. Thank you

Did you find this page helpful?