Source code

Revision control

Copy as Markdown

Other Tools

// 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);
reportCompare(0, 0);