Closed
Bug 1338810
Opened 8 years ago
Closed 7 years ago
Add support to call super method when this-value is undefined or null
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
DUPLICATE
of bug 1374462
Tracking | Status | |
---|---|---|
firefox54 | --- | affected |
People
(Reporter: anba, Unassigned)
Details
Test derived from js/src/tests/ecma_6/Class/superPropHomeObject.js:
---
class base {
test(expectedThis) { print("ok?", this === expectedThis); }
}
class derived extends base {
test(expected) { super.test(expected); }
}
derived.prototype.test.call(undefined, undefined);
// Also: derived.prototype.test.call(null, null);
---
Expected: Prints "ok? true"
Actual: Throws TypeError
Reporter | ||
Comment 1•7 years ago
|
||
No longer reproducible with the patch from bug 1374462 applied, therefore closing as duplicate.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•