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

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

Issue 174113003: Fix issue with setting __proto__ on a value (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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/v8natives.js ('k') | no next file » | 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 5eb48bbd239af1f8a420fd626a108fb64ebba944..3f8b3a1331a97bc8dd798414a069f2d6dad00d52 100644
--- a/test/mjsunit/proto-accessor.js
+++ b/test/mjsunit/proto-accessor.js
@@ -98,12 +98,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 | « src/v8natives.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698