Created
June 26, 2010 23:49
-
-
Save shimondoodkin/454464 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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