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(); |