From 4ac5515350fbf920599c732cb9b4bd216ce443b8 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 5 Nov 2010 10:57:41 -0600 Subject: [PATCH] added another test case --- tests/array-wtf.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/array-wtf.js b/tests/array-wtf.js index 01c246f..2690d51 100644 --- a/tests/array-wtf.js +++ b/tests/array-wtf.js @@ -40,6 +40,20 @@ console.log(typeOf(c)); // Expected: array // 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 }()); /*