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