towerofnix / tlnccuwagnf

The Language Nobody Could Come Up With A Good Name For
MIT License
18 stars 3 forks source link

Break to environment #48

Closed towerofnix closed 8 years ago

towerofnix commented 8 years ago

See commit comments.

Example:

fn => {
  fn-root-env => environment;
  ret => return;
  {
    if((3 < 4), {
      ret(15);
      Environment.break-to(fn-root-env, environment);
    });
    ret(80);
  }();
};

print(fn()); # 15 #

There's a gulp test error when I run this locally:

   Print -------------------------
hello!
 ✗ basic usage
[]
 ✓ multiple arguments
 ✓ types
  [...]

hello! and [] shouldn't be appearing in the console, and basic usage should be a succeeded test.

Not sure what's going on here..

Reinstalling the node modules fixed this (rm -rf node_modules; npm install)

towerofnix commented 8 years ago

Looks like console-group doesn't work for old versions of Node..

towerofnix commented 8 years ago

You know those times when a test works on a fresh clone but not your normal working clone, when both are as far as you can tell identical..?