-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrating lib/utils/debuggability.js file to Typescript. #3880
Migrating lib/utils/debuggability.js file to Typescript. #3880
Conversation
Status
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend using Private Class Members features of Javascript
Ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields
lib/utils/debuggability.ts
Outdated
private static _debugMode: boolean; | ||
private static _stepOverAndPause: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private static _debugMode: boolean; | |
private static _stepOverAndPause: boolean; | |
static #debugMode: boolean = false; | |
static #stepOverAndPause: boolean = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should avoid changing the functionality of the code while annotating. So, while changing to #
notation seems fine to me here, we should avoid initializing them with false
, which will definitely impact the functionality of the transpiled JS code.
No description provided.