Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1596)

Unified Diff: test/mjsunit/instanceof.js

Issue 6579: Make sure to check that the function prototype is a ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/stub-cache-ia32.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « src/stub-cache-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698