Skip to content

Instantly share code, notes, and snippets.

@rla
Created December 17, 2016 16:07
Show Gist options
  • Save rla/4627371a7b75ed93fe82e1986ab3a2b3 to your computer and use it in GitHub Desktop.
Save rla/4627371a7b75ed93fe82e1986ab3a2b3 to your computer and use it in GitHub Desktop.
Node 7.x with async/await without mem leaks

Node 7.x with async/await without mem leaks

Reference: nodejs/node#9618

git clone https://github.com/targos/node.git node-async-await
cd node-async-await
git checkout v8-5.5
./configure
make -j4
make test
make install

Run last command as root or through sudo.

Failing tests

Only 1 test fails:

assert.js:85
  throw new assert.AssertionError({
  ^
AssertionError: Expected "\ufffd\ufffd\u41", but got "\ufffd\u41"
input: f0,b8,41
Write sequence: [[0,3]]
Full Decoder State: StringDecoder {
  encoding: 'utf8',
  fillLast: [Function: utf8FillLast],
  lastNeed: 0,
  lastTotal: 0,
  lastChar: <Buffer 03 00 00 00> }
    at /home/raivo/node-async-await/test/parallel/test-string-decoder.js:134:14
    at Array.forEach (native)
    at test (/home/raivo/node-async-await/test/parallel/test-string-decoder.js:119:13)
    at Object.<anonymous> (/home/raivo/node-async-await/test/parallel/test-string-decoder.js:45:1)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
Command: out/Release/node /home/raivo/node-async-await/test/parallel/test-string-decoder.js
[00:49|% 100|+ 1308|-   1]: Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment