Skip to content

Commit

Permalink
Update NodeJS externs to head. (emscripten-core#10178)
Browse files Browse the repository at this point in the history
Fixes warnings with closure compiler:

/build/work/720d0796279fe09fc10eefb9ff94c9eb673e/google3/third_party/emscripten/stable/third_party/closure-compiler/node-externs/domain.js:67: WARNING - Bad type annotation. type not recognized due to syntax error. See https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler for more information.
 * @param {function(...[*])} callback
                       ^

/build/work/720d0796279fe09fc10eefb9ff94c9eb673e/google3/third_party/emscripten/stable/third_party/closure-compiler/node-externs/domain.js:68: WARNING - Bad type annotation. type not recognized due to syntax error. See https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler for more information.
 * @return {function(...[*])}
                        ^

/build/work/720d0796279fe09fc10eefb9ff94c9eb673e/google3/third_party/emscripten/stable/third_party/closure-compiler/node-externs/domain.js:73: WARNING - Bad type annotation. type not recognized due to syntax error. See https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler for more information.
 * @param {function(...[*])} callback
                       ^

/build/work/720d0796279fe09fc10eefb9ff94c9eb673e/google3/third_party/emscripten/stable/third_party/closure-compiler/node-externs/domain.js:74: WARNING - Bad type annotation. type not recognized due to syntax error. See https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler for more information.
 * @return {function(...[*])}
                        ^
  • Loading branch information
wffurr authored and kripken committed Jan 10, 2020
1 parent cd9935e commit f93823e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions third_party/closure-compiler/node-externs/domain.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ domain.Domain.prototype.add = function(emitter) {};
domain.Domain.prototype.remove = function(emitter) {};

/**
* @param {function(...[*])} callback
* @return {function(...[*])}
* @param {function(...*)} callback
* @return {function(...*)}
*/
domain.Domain.prototype.bind = function(callback) {};

/**
* @param {function(...[*])} callback
* @return {function(...[*])}
* @param {function(...*)} callback
* @return {function(...*)}
*/
domain.Domain.prototype.intercept = function(callback) {};

Expand Down

0 comments on commit f93823e

Please sign in to comment.