| Index: test/mjsunit/instanceof.js
|
| ===================================================================
|
| --- test/mjsunit/instanceof.js (revision 470)
|
| +++ test/mjsunit/instanceof.js (working copy)
|
| @@ -60,11 +60,14 @@
|
|
|
| function TestExceptions() {
|
| function F() { }
|
| + function G() { }
|
| + G.prototype = undefined;
|
| var items = [ 1, new Number(42),
|
| true,
|
| 'string', new String('hest'),
|
| {}, [],
|
| - F, new F(),
|
| + F, new F(),
|
| + G, new G(),
|
| Object, String ];
|
|
|
| var exceptions = 0;
|
| @@ -80,8 +83,8 @@
|
| }
|
| }
|
| }
|
| - assertEquals(10, instanceofs);
|
| - assertEquals(88, exceptions);
|
| + assertEquals(12, instanceofs);
|
| + assertEquals(130, exceptions);
|
| }
|
|
|
| TestExceptions();
|
|
|