Skip to content

Script sync fails with a SyntaxError on logical nullish assignment  #883

Closed
@monk-time

Description

@monk-time

Same issue as #728 but with logical nullish assignment (ES2021 feature that is already supported by all major browsers) causing script sync to fail with a SyntaxError:

Script sync failed - Code contains errors: Uncaught SyntaxError: Unexpected token '??=' at undefined:1567:36.

https://github.com/JasonBarnabe/greasyfork/blob/17dac187d24a42dc6701216320d9bf868f65ea6b/Gemfile.lock#L233-L234
V8 started supporting this feature at v8.5. mini_racer has an update available (0.4.0.beta1, came out yesterday) where they have switched from libv8 to libv8-node (commit, explanation) which should be enough to fix this issue, node supports this feature since v15+. Meanwhile libv8 hasn't been updated from what you're using.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions