Skip to content

Instantly share code, notes, and snippets.

@shimondoodkin
Created June 26, 2010 23:49
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 shimondoodkin/454464 to your computer and use it in GitHub Desktop.
Save shimondoodkin/454464 to your computer and use it in GitHub Desktop.
var sys=require('sys');
var Route={};
//var Route=function (){};
sys.puts(Route);
Route.prototype.toString1= function() { return "it is a string i swear" }
var Newroute=new Route();
sys.puts(Route);
@shimondoodkin
Copy link
Author

TypeError: Cannot set property 'toString1' of undefined
at Object. (/var/www/test.js:7:26)
at Module._compile (module:384:23)
at Module._loadScriptSync (module:393:16)
at Module.loadSync (module:296:10)
at Object.runMain (module:459:22)
at node.js:196:8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment