view pydershell/test.js @ 28:f974d4a80473 default tip

Some fixes.
author Atul Varma <varmaa@toolness.com>
date Tue, 08 Sep 2009 15:27:02 -0700
parents b7037cd0f375
children
line wrap: on
line source

print('hello there dood');

function blah() {
  print('hi');
  try {
    throw new Error('baffs');
  } catch (e) {
    print('exception is ' + e);
    throw e;
  }
}

//foo(blah);

bar({blarg: "aweg", bar: function() { return this.blarg; }});

var mybaz = baz();
print(mybaz.woozle(5));
ensureBaz(mybaz);
print(mybaz.moose);
print(mybaz.moose);
mybaz.moose = 0;
print(mybaz.moose);