Skip to content

Reassigned/mutated module variable not marked as such #3215

Closed
@Conduitry

Description

@Conduitry
<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
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions