Skip to content

Emitter helper function could be override by user codeΒ #43296

@Kingwl

Description

@Kingwl

Bug Report

πŸ”Ž Search Terms

emit, helper

πŸ•— Version & Regression Information

  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________

⏯ Playground Link

https://www.typescriptlang.org/play?target=1#code/MYewdgzgLgBA+nApgDyosATCMC8MAUAlLgHwwDeMUAFgE4gDuMYiTAorfbUTAL4CwAKCHAANgEMI2AEIUY43DACMfERKkwAIjBRpMMigOGCAbuNowMilk01ER4CCFGIAdKJABzfBlfjCQA

πŸ’» Code

const __extends = () => { throw new Error() }

class B { a = 1 }
class D extends B {}

var d = new D()
console.log(d.a)

πŸ™ Actual behavior

Exception

πŸ™‚ Expected behavior

console.log(1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions