Skip to content

Cannot extend TypedArray #1112

Open
@bnoordhuis

Description

@bnoordhuis

This should work:

var TypedArray = Object.getPrototypeOf(Uint8Array)
var MyClass = class extends TypedArray {} // throws "TypeError: parent class must be constructor"

TypedArray is not expected to be instantiable (it's abstract) but it should be extendable. Upcoming test262 tests depend on that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions