summaryrefslogblamecommitdiffhomepage
path: root/test/node/promise_end/app.js
blob: 373c3bc6f18d1c69599c6cbf49def8e813edeb3c (plain) (tree)
1
2
3
4


                       
                                                  










                                                     

var fs = require('fs');

require('http').createServer(function (req, res) {
    res.write('blah');

    Promise.resolve().then(() => {
        res.end();
    });

    req.on('data', (data) => {
        fs.appendFile('callback', '', function() {});
    });

}).listen(7080);