Skip to content
This repository was archived by the owner on May 30, 2020. It is now read-only.
This repository was archived by the owner on May 30, 2020. It is now read-only.

semicolon after 'continue' statement when using label #61

@aurelianzaha

Description

@aurelianzaha

When using the 'continue' statement is possible to specify a label:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/continue#Using_continue_with_a_label
but this is not squeezed properly

input:

outer: do {
      for (var i = 0; i < 10; ++i) {
        if (i > 1) { continue outer }
      }
    } while (true)

output:

;outer:do{for(var i=0;i<10;++i){if(i>1){continue;outer}}}
while(!0);

the semicolon is placed after 'continue' which makes continuing the wrong loop, the for loop instead of the do

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