Skip to content

super() call should return this, not undefined #3538

Closed
@cangSDARM

Description

func (p *parser) insertStmtsAfterSuperCall(body *js_ast.FnBody, stmtsToInsert []js_ast.Stmt, superCtorRef ast.Ref) {

image

It is wrong about what super can really return. It's actually wrong

should be:
image

some materials:

microsoft/TypeScript#37847
microsoft/TypeScript#39758

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions