* Evaluate the named script, return a promise with its results. * * Same parameter list/syntax as evalsha, except for the name. * * @param {string} name
()
| 915 | * @param {string} name |
| 916 | */ |
| 917 | _evalScript() { |
| 918 | // Avoid deoptimization by leaking arguments: store them directly in an |
| 919 | // array instead of passing them to a helper. |
| 920 | const args = new Array(arguments.length); |
| 921 | for (let i = 0; i < arguments.length; ++i) { |
| 922 | args[i] = arguments[i]; |
| 923 | } |
| 924 | |
| 925 | return this._commandable().then((client) => |
| 926 | this._evalScriptOn(client, args) |
| 927 | ); |
| 928 | } |
| 929 | } |
| 930 | |
| 931 | module.exports = Queue; |
no test coverage detected