Skip to content

Instantly share code, notes, and snippets.

@hdon
Created June 29, 2009 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hdon/137642 to your computer and use it in GitHub Desktop.
Save hdon/137642 to your computer and use it in GitHub Desktop.
donny@teamspace:~/gpsee/src$ gsr -ddzz crash.js
JS exception #147 - uncaught exception: gpsee.module.ca.page.binary.ByteArray.setProperty.type: cannot apply this method to gpsee.module.ca.page.binary.ByteArray-type object
Failed loading program module 'crash.js': module initialization failed
donny@teamspace:~/gpsee/src$ ./embrace/gpsee-js/gpsee-js
js> const binary = require("binary")
js> binary.ByteArray.prototype.sort
function sort() {
[native code]
}
js> binary.ByteArray.prototype.sort = function(){return 'buzz off'}
function () {
return "buzz off";
}
js> var b = new binary.ByteArray()
js> b.sort()
buzz off
js> binary.ByteArray.prototype.greet = function(){return 'Hello World!'}
uncaught exception: gpsee.module.ca.page.binary.ByteArray.setProperty.type: cannot apply this method to gpsee.module.ca.page.binary.ByteArray-type object
js>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment