Emitter helper function could be override by user code
See original GitHub issueBug 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
💻 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)
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (10 by maintainers)
Top Results From Across the Web
c# - Inheritance and overriding for private helper methods
I'm guessing that virtual / override don't come into play because validate() is a private method. I know I could also rename the...
Read more >Calling helper functions in a Python `__init__` function
But, in this case, I'd personally move all of that initialization code out of the class - I'd create a plain data structure...
Read more >Writing emitters - Cadl - Microsoft Open Source
Cadl emitters are libraries that use various Cadl compiler APIs to reflect on the cadl compilation and produce generated artifacts.
Read more >Mixins - The Modern JavaScript Tutorial
There's no inheritance, but a simple method copying. So User may inherit from another class and also include the mixin to “mix-in” the ......
Read more >Scripting API Reference | StudioEventEmitter - FMOD
StudioEventEmitter ::OverrideMinDistance Value to use for the Event Instances ... StudioEventEmitter::SetParameter Helper functions to set parameters on the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We may add a flag what if the flag turns on, tsc will rename the emitted helper name if there are conflicts in a file?
the bundler comes before compilation , so ts compilation should know all the info about scope name conflict