-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
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
[Web] Fix closure compiler typedef annotation #91202
Conversation
5d89161
to
0d6fd03
Compare
I don't think the I'm trying to make a build now. |
Here's the build log on 3.x: #91151 (comment) There's indeed another warning. It's a bit weird that warnings cause the build to fail, without explicit mention that warnings are treated as errors. |
Indeed, it does seems the warnings were just a red herring and the error is still there. Not sure why it worked for me at some point. |
I guess we can merge this as just a warning fix now. |
0d6fd03
to
81c8508
Compare
The typedef annotation is expected to come bofre a var (or const) since it's most commonly used in externs. Use an inline definition instead.
81c8508
to
8079cd4
Compare
@@ -72,8 +72,7 @@ const Features = { // eslint-disable-line no-unused-vars | |||
* | |||
* @returns {Array<string>} A list of human-readable missing features. | |||
* @function Engine.getMissingFeatures | |||
* @typedef {{ threads: boolean }} SupportedFeatures | |||
* @param {SupportedFeatures} supportedFeatures | |||
* @param {{threads: (boolean|undefined)}} supportedFeatures |
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 wonder if we should rename the parameter to requestedFeatures
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.
Thanks! |
The typedef annotation is expected to come bofre a var (or const) since it's most commonly used in externs. Use an inline definition instead.