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
replace some props on the object returned by getMode during compile time #3772
replace some props on the object returned by getMode during compile time #3772
Conversation
2300d2c
to
7d71ddd
Compare
@@ -107,8 +107,7 @@ function reportErrorToServer(message, filename, line, col, error) { | |||
if (this && this.document) { | |||
makeBodyVisible(this.document); | |||
} | |||
const mode = getMode(); |
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.
@cramforce PTAL. works but unfortunately I don't detect re-aliasing right now, is there a way to get the type information of a return type? (I'm sure there is I just don't know how to get to it)
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.
Lets make this illegal.
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.
done.
…le time getMode().localDev == false getMode().test == false getMode().minified == true
7d71ddd
to
8382726
Compare
* example: | ||
* isFunctionInvokeAndPropAccess(n, "getMode", "test"); // matches `getMode().test` | ||
* | ||
* @param n |
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.
Remove these
Looks great. Lets add a presubmit check or compile error for |
@cramforce will do |
478b98a
to
d4e8934
Compare
@cramforce ready for review again. PTAL |
LGTM |
d4e8934
to
23181c7
Compare
getMode().localDev == false
getMode().test == false
getMode().minified == true