Skip to content

Commit 06aab7e

Browse files
committed
Remove some post-processing from download script
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.
1 parent 2c7d6f3 commit 06aab7e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

bin/download-node-tests.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,6 @@ function testfixer (filename) {
7171
firstline = false
7272
}
7373

74-
// use `var` instead of `const`/`let`
75-
line = line.replace(/(const|let) /g, 'var ')
76-
77-
// make `var common = require('common')` work
78-
line = line.replace(/(var common = require.*)/g, 'var common = { skip: function () {} };')
79-
80-
// make `require('../common')` work
81-
line = line.replace(/require\('\.\.\/common'\);/g, '')
82-
8374
// require browser buffer
8475
line = line.replace(/(.*)require\('buffer'\)(.*)/g, '$1require(\'../../\')$2')
8576

0 commit comments

Comments
 (0)