view pydershell/test.js @ 18:69e5523ebdc6

Separated out SafeJsObjectWrapper into itself and a new subclass, SafeJsFunctionWrapper, so that callable() works properly on instances.
author Atul Varma <varmaa@toolness.com>
date Mon, 07 Sep 2009 04:38:44 -0700
parents 1d62177c5c27
children 1950b0b5bcd8
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; }});