AssemblyScript / assemblyscript

A TypeScript-like language for WebAssembly.
https://www.assemblyscript.org
Apache License 2.0
16.86k stars 657 forks source link

Support break and continue labels #334

Open MaxGraey opened 5 years ago

MaxGraey commented 5 years ago

This valid typescript code:

export function escape(): i32 {
  var t: i32;
  jail: {
    t = 0xDEADFA11;
    break jail;
  };
  return t;
}
ghost commented 3 years ago

Just tried out AS on the website, first thing I wrote used loops and labels. I thought that this was a bug, but it just isn't implemented yet; it'd be great to hear when AS supports labels.

Pyrolistical commented 2 years ago

I ran into this as well. Would be nice if there was an faq item that describe all the things in typescript that don't work yet