blob: 8734b8ee2c12bf175941bed43e20b062be48e84d [file] [log] [blame]
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
The HomeObject of Functions declared as methods is the Object prototype.
es6id: 14.3.8
features: [super]
---*/
var obj = {
method(x = super.toString) {
return x;
}
};
obj.toString = null;
assert.sameValue(obj.method(), Object.prototype.toString);