Override JavaScript methods
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 267
- Avg merge
- 1d 25m
- Merged PRs (30d)
- 14
Description
### Describe the bug
I have the following TypeScript class where one of the methods needs to be overridden in the implementation. I am ensuring this in the constructor.
Implementation of the above class in Python,
The foreign application implementing the above class is experiencing unexpected results even after the 'dummy_green_method' is overridden in the implementation. I expect the super constructor not to throw an error in the implementation because the method has been overridden. However, this is not the case. Please provide guidance on what I might be missing here.
### Expected Behavior
The above implementation should throw an error while declaring an object.
### Current Behavior
It's throwing an error because in the base constructor **dummy_green_method** is not overridden.
### Reproduction Steps
Provided in the problem description.
### Possible Solution
_No response_
### Additional Information/Context
_No response_
### SDK version used
1.69.0
### Environment details (OS name and version, etc.)
macOS/13.6 (22G120)
Contributor guide
Research direction
Start by examining the TypeScript base class and Python implementation shown in the issue, focusing on the constructor and dummy_green_method override. Reproduce the behavior with SDK version 1.69.0; done means the constructor behavior matches the documented expectation when the method is overridden.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100