| // 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-runtime-semantics-classdefinitionevaluation |
| description: SuperClass may be a bound function object |
| 5. If ClassHeritageopt is not present, then |
| e. If superclass is null, then |
| f. Else if IsConstructor(superclass) is false, throw a TypeError exception. |
| i. Let protoParent be ? Get(superclass, "prototype"). |
| ii. If Type(protoParent) is neither Object nor Null, throw a TypeError |
| iii. Let constructorParent be superclass. |
| var bound = function() {}.bind(); |
| assert.sameValue(Object.getPrototypeOf(new C()), C.prototype); |