diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-03 19:48:56 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-03 19:52:44 +0200 |
commit | 911d1a0406cf86f7d992807a16a4540b524bed25 (patch) | |
tree | ae9c04f669a51ddb6140aaeae445046ab2a1cc24 /testing/node-closurecompiler-externs/domain.js-fix-type-annotations.patch | |
parent | 5627d4ee5817140e94aac5e14e143cd664b7dcb4 (diff) | |
download | aports-911d1a0406cf86f7d992807a16a4540b524bed25.tar.bz2 aports-911d1a0406cf86f7d992807a16a4540b524bed25.tar.xz |
testing/node-closurecompiler-externs: new aport
https://github.com/dcodeIO/node.js-closure-compiler-externs
A collection of node.js externs for use with Closure Compiler
This is needed for testing/emscripten.
Diffstat (limited to 'testing/node-closurecompiler-externs/domain.js-fix-type-annotations.patch')
-rw-r--r-- | testing/node-closurecompiler-externs/domain.js-fix-type-annotations.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/node-closurecompiler-externs/domain.js-fix-type-annotations.patch b/testing/node-closurecompiler-externs/domain.js-fix-type-annotations.patch new file mode 100644 index 0000000000..c638747b25 --- /dev/null +++ b/testing/node-closurecompiler-externs/domain.js-fix-type-annotations.patch @@ -0,0 +1,35 @@ +From 8a76d75392291c80a6b303133b95a31d98fd2f5c Mon Sep 17 00:00:00 2001 +From: Andrew Keller <andrew@wimpyprogrammer.com> +Date: Wed, 18 Feb 2015 22:45:15 -0500 +Subject: [PATCH] Fixing type annotations in domain.js + +Fixing the syntax of the type annotations for variable number, any type callbacks to avoid warnings from the Closure Compiler. + +Upstream-Commit: https://github.com/dcodeIO/node.js-closure-compiler-externs/commit/8a76d75392291c80a6b303133b95a31d98fd2f5c +--- + domain.js | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/domain.js b/domain.js +index 3349561..6136f91 100644 +--- a/domain.js ++++ b/domain.js +@@ -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) {}; + |