mirror of
https://github.com/nodejs/node.git
synced 2025-05-05 15:32:15 +00:00

common.js contains code that checks for variables leaking into the global namespace. Load common.js in all tests that do not intentionally leak variables. PR-URL: https://github.com/nodejs/node/pull/3095 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
19 lines
465 B
JavaScript
19 lines
465 B
JavaScript
'use strict';
|
|
require('../common');
|
|
console.error('before opening stdin');
|
|
process.stdin.resume();
|
|
console.error('stdin opened');
|
|
setTimeout(function() {
|
|
console.error('pausing stdin');
|
|
process.stdin.pause();
|
|
setTimeout(function() {
|
|
console.error('opening again');
|
|
process.stdin.resume();
|
|
setTimeout(function() {
|
|
console.error('pausing again');
|
|
process.stdin.pause();
|
|
console.error('should exit now');
|
|
}, 1);
|
|
}, 1);
|
|
}, 1);
|