Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reassigned/mutated module variable not marked as such #3215

Closed
Conduitry opened this issue Jul 10, 2019 · 0 comments · Fixed by #4469
Closed

Reassigned/mutated module variable not marked as such #3215

Conduitry opened this issue Jul 10, 2019 · 0 comments · Fixed by #4469
Labels

Comments

@Conduitry
Copy link
Member

<script context='module'>
  let foo = {};
  let bar = {};
  foo = 1;
  bar.x = 1;
</script>

<script>
  foo = 2;
  bar.x = 2;
</script>

results in a vars value of

[
  {
    name: 'foo',
    export_name: null,
    injected: false,
    module: true,
    mutated: false,
    reassigned: false,
    referenced: false,
    writable: true
  },
  {
    name: 'bar',
    export_name: null,
    injected: false,
    module: true,
    mutated: false,
    reassigned: false,
    referenced: false,
    writable: true
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants