Skip to content

Assignment to non-assignable expression should throw a SyntaxError #588

Closed

Description

@HalidOdat

Describe the bug
Assignment to non-assignable expression should throw a SyntaxError.

To Reproduce
Steps to reproduce the issue, or JavaScript code that causes this failure.

This JavaScript code reproduces the issue:

3 = 5 

Expected behavior
Explain what you expected to happen, and what is happening instead.

Running this code, should throw a SyntaxError.

SpiderMonkey: SyntaxError: invalid assignment left-hand side
V8: Uncaught SyntaxError: Invalid left-hand side in assignment

instead we get 5

Build environment (please complete the following information):

  • OS: Manjaro Linux
  • Target triple: x86_64-unknown-linux-gnu
  • Rustc version: rustc 1.45.0 (5c1f21c3b 2020-07-13)

Activity

  1. added
    A-Bug
    A-Execution
    on Jul 22, 2020
  2. Lan2u commented on Jul 23, 2020

    @Lan2u

    I will have a look at this as part of #559

  3. self-assigned this
    on Jul 23, 2020
  4. added
    Blocked
    on Jul 29, 2020
  5. linked a pull request that will close this issueNew lexer #559on Aug 2, 2020
  6. added this to the v0.10.0 milestone on Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-BugA-ExecutionBlocked

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions