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

Unified Diff: test/mjsunit/proto-accessor.js

Issue 196133017: Experimental parser: merge r19949 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 9 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 | « test/mjsunit/mjsunit.status ('k') | test/mjsunit/regress-keyed-store-non-strict-arguments.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/proto-accessor.js
diff --git a/test/mjsunit/proto-accessor.js b/test/mjsunit/proto-accessor.js
index d38d362579587ec7fc81ccea7c77d28b9493b854..b2e7d34669049e1732244aea3d0d5be506e6d3c0 100644
--- a/test/mjsunit/proto-accessor.js
+++ b/test/mjsunit/proto-accessor.js
@@ -102,12 +102,13 @@ var values = [1, true, false, 's', Symbol()];
function TestSetProtoOfValues() {
+ var proto = {};
for (var i = 0; i < values.length; i++) {
- assertEquals(setProto.call(values[i], i), undefined);
+ assertEquals(setProto.call(values[i], proto), undefined);
}
- assertThrows(function() { setProto.call(null, 7); }, TypeError);
- assertThrows(function() { setProto.call(undefined, 8); }, TypeError);
+ assertThrows(function() { setProto.call(null, proto); }, TypeError);
+ assertThrows(function() { setProto.call(undefined, proto); }, TypeError);
}
TestSetProtoOfValues();
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | test/mjsunit/regress-keyed-store-non-strict-arguments.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698