blob: 2b15a2aa18196ba2c708a67598baff068639b705 [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() {
return super.toString;
}
};
obj.toString = null;
assert.sameValue(obj.method(), Object.prototype.toString);