Skip to content
Myr

Using the newer node API to stop an error related to v8's runtime.js.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Justin Lilly · committed by TJ Holowaychuk · parent 69bfe80 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: TJ Holowaychuk <tj@vision-media.ca>

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:lib/express.core.js+2 added-2 removed
45 unmodified lines
46 * @api private47 */48 49 listen : function(port, callback) {50 new node.http.Server(callback).listen(port)50 node.http.createServer(callback).listen(port)51 puts('Express listening to http://localhost:' + port)52 }53 },54
352 unmodified lines
407get('articles/:name', function(){408 return 'article name ' + param('name')409})410411Express.start()411Express.start()