Skip to content

Commit

Permalink
Suppress "not present on all members of union" property warnings for …
Browse files Browse the repository at this point in the history
…the generator functions.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=187235202
  • Loading branch information
concavelenz authored and Tyler Breisacher committed Feb 28, 2018
1 parent 2ef1174 commit 0547c42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/com/google/javascript/jscomp/js/es6/generator_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ $jscomp.generator.Context.prototype.enterFinallyBlock = function(
* @param {number} nextAddress The state that should be run next.
* @param {number=} finallyDepth The nesting level of current "finally" block.
* @return {void}
* @suppress {strictMissingProperties}
*/
$jscomp.generator.Context.prototype.leaveFinallyBlock = function(
nextAddress, finallyDepth) {
Expand Down Expand Up @@ -787,7 +788,7 @@ $jscomp.generator.Engine_.prototype.yieldAllStep_ = function(
* @private
* @final
* @return {!IIterableResult<VALUE>}
* @suppress {reportUnknownTypes}
* @suppress {reportUnknownTypes, strictMissingProperties}
*/
$jscomp.generator.Engine_.prototype.nextStep_ = function() {
while (this.context_.nextAddress) {
Expand Down
2 changes: 1 addition & 1 deletion src/com/google/javascript/jscomp/resources.json

Large diffs are not rendered by default.

0 comments on commit 0547c42

Please sign in to comment.