mirror of https://github.com/lukechilds/node.git
Browse Source
Many tests use require() to import modules that subsequently never gets used. This removes those imports and, in a few cases, removes other unused variables from tests. PR-URL: https://github.com/nodejs/node/pull/4475 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>process-exit-stdio-flushing
Rich Trott
9 years ago
29 changed files with 5 additions and 47 deletions
@ -1,3 +1,3 @@ |
|||
'use strict'; |
|||
require('../../common'); |
|||
var binding = require('./build/Release/binding'); |
|||
require('./build/Release/binding'); |
|||
|
@ -1,9 +1,8 @@ |
|||
'use strict'; |
|||
require('../common'); |
|||
var assert = require('assert'); |
|||
|
|||
// Test that allocating a timer does not increase the loop's reference
|
|||
// count.
|
|||
|
|||
var Timer = process.binding('timer_wrap').Timer; |
|||
var t = new Timer(); |
|||
new Timer(); |
|||
|
Loading…
Reference in new issue