mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
555 B
27 lines
555 B
var assert = require('assert');
|
|
|
|
var knownGlobals = [ setTimeout
|
|
, setInterval
|
|
, clearTimeout
|
|
, clearInterval
|
|
, console
|
|
, Buffer
|
|
, process
|
|
, global
|
|
];
|
|
|
|
for (var x in global) {
|
|
var found = false;
|
|
|
|
for (var y in knownGlobals) {
|
|
if (global[x] === knownGlobals[y]) {
|
|
found = true;
|
|
break;
|
|
}
|
|
}
|
|
|
|
if (!found) {
|
|
console.error("Unknown global: %s", x);
|
|
assert.ok(false);
|
|
}
|
|
}
|
|
|