Source code
Revision control
Copy as Markdown
Other Tools
// Copyright (C) 2019 Alexey Shvayka. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: prod-SuperCall
description: >
SuperCall should directly invoke [[GetPrototypeOf]] internal method.
info: |
GetSuperConstructor ( )
[...]
5. Let superConstructor be ! activeFunction.[[GetPrototypeOf]]().
features: [class]
---*/
Object.defineProperty(Object.prototype, '__proto__', {
get: function() {
throw new Test262Error('should not be called');
},
});
class A extends Array {}
assert.sameValue(new A(1).length, 1);
reportCompare(0, 0);