diff options
Diffstat (limited to 'runtime/js')
-rw-r--r-- | runtime/js/40_http.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/js/40_http.js b/runtime/js/40_http.js index 6b9d3dca6..3916b1df4 100644 --- a/runtime/js/40_http.js +++ b/runtime/js/40_http.js @@ -81,8 +81,8 @@ return { async next() { const reqEvt = await httpConn.nextRequest(); - if (reqEvt === null) return { value: undefined, done: true }; - return { value: reqEvt, done: false }; + // Change with caution, current form avoids a v8 deopt + return { value: reqEvt, done: reqEvt === null }; }, }; } |