Permalink
Browse files

Make tests work on node 0.4.x (12)

  • Loading branch information...
1 parent 0322235 commit 27cbf98b7bcd987b3ef9182e10ef3339796f659c @sergeyksv sergeyksv committed Jan 31, 2012
Showing with 13 additions and 11 deletions.
  1. +13 −11 test/common.js
View
@@ -64,18 +64,20 @@ process.on('exit', function() {
console,
Buffer,
process,
- ArrayBuffer,
- Int8Array,
- Uint8Array,
- Int16Array,
- Uint16Array,
- Int32Array,
- Uint32Array,
- Float32Array,
- Float64Array,
- DataView,
+ global.ArrayBuffer!==undefined?ArrayBuffer:null,
+ global.Int8Array!==undefined?Int8Array:null,
+ global.Uint8Array!==undefined?Uint8Array:null,
+ global.Int16Array!==undefined?Int16Array:null,
+ global.Uint16Array!==undefined?Uint16Array:null,
+ global.Int32Array!==undefined?Int32Array:null,
+ global.Uint32Array!==undefined?Uint32Array:null,
+ global.Float32Array!==undefined?Float32Array:null,
+ global.Float64Array!==undefined?Float64Array:null,
+ global.DataView!==undefined?DataView:null,
AssertionError,
- global];
+ global,
+ events
+ ];
if (global.errno) {
knownGlobals.push(errno);

0 comments on commit 27cbf98

Please sign in to comment.