blob: 60941edf4df85b40d2820a4bdbb1114411e82b9e [file] [log] [blame]
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-additional-properties-of-the-object.prototype-object
description: Behavior when property key cannot be derived
info: |
[...]
2. Let key be ? ToPropertyKey(P).
---*/
var subject = {};
var key = {
toString: function() {
throw new Test262Error();
}
};
assert.throws(Test262Error, function() {
subject.__lookupGetter__(key);
});