Skip to content

Commit

Permalink
#DHCL-408 : update(package) : Update @wdio/cli @wdio/local-runner @wd…
Browse files Browse the repository at this point in the history
…io/mocha-framework @wdio/sauce-service @wdio/spec-reporter
  • Loading branch information
borracciaBlu committed Jan 30, 2024
1 parent a70267e commit d17844a
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 78 deletions.
152 changes: 76 additions & 76 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions test/test-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2481,6 +2481,9 @@ var gOPD = require('gopd');
var $TypeError = GetIntrinsic('%TypeError%');
var $floor = GetIntrinsic('%Math.floor%');

/** @typedef {(...args: unknown[]) => unknown} Func */

/** @type {<T extends Func = Func>(fn: T, length: number, loose?: boolean) => T} */
module.exports = function setFunctionLength(fn, length) {
if (typeof fn !== 'function') {
throw new $TypeError('`fn` is not a function');
Expand All @@ -2505,9 +2508,9 @@ module.exports = function setFunctionLength(fn, length) {

if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
if (hasDescriptors) {
define(fn, 'length', length, true, true);
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
} else {
define(fn, 'length', length);
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
}
}
return fn;
Expand Down

0 comments on commit d17844a

Please sign in to comment.