• It fails on linux too.

    It's because http.createServer returns an object of class httpSrv. If you then overwrite that built-in class with your own function, magically all the built-in methods of httpSrv disappear.

    It's not a bug, it's just part of JS. Rename httpSrv to httpServer and it'll be fine :)

About

Avatar for Gordon @Gordon started