Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Invalid completion record on BreakStatement with label #162

@sebmck

Description

@sebmck

invalid completion record: {"type":"break","target":null}

var i = 0;
var s = '';

function* f() {
  s += 'a';
  while(i++ < 3) {
    s += 'b';
    label1: {
      s += 'c';
      break label1;
      s += 'd';
    }
    s += 'e';
  }
  s += 'f';
}

var g = f();
g.next();
assert.equal(s, 'abcebcebcef');

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