Some post-processing of the downloaded tests is no longer needed.
Use `const` and `let` instead of `var` and also import a trimmed
down version of the `common` test helper.
firstline = false
}
- // use `var` instead of `const`/`let`
- line = line.replace(/(const|let) /g, 'var ')
-
- // make `var common = require('common')` work
- line = line.replace(/(var common = require.*)/g, 'var common = { skip: function () {} };')
-
- // make `require('../common')` work
- line = line.replace(/require\('\.\.\/common'\);/g, '')
-
// require browser buffer
line = line.replace(/(.*)require\('buffer'\)(.*)/g, '$1require(\'../../\')$2')