added another test case
This commit is contained in:
parent
e089c191a6
commit
4ac5515350
|
@ -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
|
||||||
}());
|
}());
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue