added another test case

This commit is contained in:
AJ ONeal 2010-11-05 10:57:41 -06:00
parent e089c191a6
commit 4ac5515350
1 changed files with 14 additions and 0 deletions

View File

@ -40,6 +40,20 @@
console.log(typeOf(c)); console.log(typeOf(c));
// Expected: array // Expected: array
// Node/V8/FF: object // Node/V8/FF: object
d = Object.create(Array);
// FF: Error: typeof prototype[function] != 'object'
d[2] = 27;
console.log(d);
// Expected: [undefined, undefined, 27];
// Node/V8: { '2': 27 }
console.log(d.length);
// Expected: 3
// Node/V8/FF: 1
console.log(typeOf(d));
// Expected: array
// Node/V8: object
}()); }());
/* /*