Skip to content

[Bug] REPL plugin giving error for spread syntax #885

@mal2994

Description

@mal2994

Describe the bug
I was trying to locate some elements in chrome using [...document.querySelectorAll("a")].filter( /* foo */ ) but the REPL gave me a syntax error.

Code Snippet
Just run the example code from the readme.md. Once you get to example.com and the repl starts type this [...document.querySelectorAll("a")] and you will get syntax error.

Versions

System:
OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
CPU: (8) x64 Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz
Memory: 10.02 GB / 15.36 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 21.4.0 - ~/.config/nvm/versions/node/v21.4.0/bin/node
npm: 10.2.4 - ~/.config/nvm/versions/node/v21.4.0/bin/npm

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions