edwagbb commited on
Commit
529abe2
·
verified ·
1 Parent(s): 8917319

Update app/nodejs/index.js

Browse files
Files changed (1) hide show
  1. app/nodejs/index.js +1 -1
app/nodejs/index.js CHANGED
@@ -14,6 +14,6 @@ require('http').createServer(async(res,req)=>{
14
  })
15
  }
16
  if(!code) return res.end('no code!');
17
- var resp = await eval(`async(res,req)=>{${code}}`)(res,req);
18
  if(resp && !res.finished ) return res.end(""+resp);
19
  }).listen(parseInt(process.argv[2]))
 
14
  })
15
  }
16
  if(!code) return res.end('no code!');
17
+ var resp = await eval(`async(res,req)=>{return (${code})}`)(res,req);
18
  if(resp && !res.finished ) return res.end(""+resp);
19
  }).listen(parseInt(process.argv[2]))