npm update + fix linked to this update
found an issue with eslint when empty comments were used.
This commit is contained in:
@@ -24,7 +24,7 @@ let cbid = 0;
|
||||
function getCallbackSetter (funcName) {
|
||||
return function (...args) {
|
||||
const that = this, // New callback
|
||||
callbackID = this.send(funcName, args, function () { /* */ }); // The callback (currently it's nothing, but will be set later)
|
||||
callbackID = this.send(funcName, args, function () { /* empty */ }); // The callback (currently it's nothing, but will be set later)
|
||||
|
||||
return function (newCallback) {
|
||||
that.callbacks[callbackID] = newCallback; // Set callback
|
||||
|
||||
@@ -37,8 +37,8 @@ const ns = {
|
||||
|
||||
if (!window.console) {
|
||||
window.console = {
|
||||
log (str) { /* */ },
|
||||
dir (str) { /* */ }
|
||||
log (str) { /* empty fn */ },
|
||||
dir (str) { /* empty fn */ }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -82,13 +82,13 @@ const {
|
||||
|
||||
if (!window.console) {
|
||||
window.console = {};
|
||||
window.console.log = function (str) { /* */ };
|
||||
window.console.dir = function (str) { /* */ };
|
||||
window.console.log = function (str) { /* empty fn */ };
|
||||
window.console.dir = function (str) { /* empty fn */ };
|
||||
}
|
||||
|
||||
if (window.opera) {
|
||||
window.console.log = function (str) { window.opera.postError(str); };
|
||||
window.console.dir = function (str) { /* */ };
|
||||
window.console.dir = function (str) { /* empty fn */ };
|
||||
}
|
||||
|
||||
// Reenable after fixing eslint-plugin-jsdoc to handle
|
||||
@@ -3890,7 +3890,7 @@ function hideCursor () {
|
||||
* @returns {void}
|
||||
*/
|
||||
this.open = function () {
|
||||
/* */
|
||||
/* empty fn */
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user