| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -158,7 +158,8 @@ function getRunArgs(path, { forceExit, | |||
| 158 | 158 | ArrayPrototypePushApply(argv, execArgv); | |
| 159 | 159 | ||
| 160 | 160 | if (path === kIsolatedProcessName) { | |
| 161 | - ArrayPrototypePush(argv, '--test', ...ArrayPrototypeSlice(process.argv, 1)); | ||
| 161 | + ArrayPrototypePush(argv, '--test'); | ||
| 162 | + ArrayPrototypePushApply(argv, ArrayPrototypeSlice(process.argv, 1)); | ||
| 162 | 163 | } else { | |
| 163 | 164 | ArrayPrototypePush(argv, path); | |
| 164 | 165 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,6 +8,7 @@ const { | |||
| 8 | 8 | ArrayPrototypeSome, | |
| 9 | 9 | ArrayPrototypeSplice, | |
| 10 | 10 | ArrayPrototypeUnshift, | |
| 11 | + ArrayPrototypeUnshiftApply, | ||
| 11 | 12 | FunctionPrototype, | |
| 12 | 13 | MathMax, | |
| 13 | 14 | Number, | |
@@ -735,9 +736,9 @@ class Test extends AsyncResource { | |||
| 735 | 736 | ||
| 736 | 737 | computeInheritedHooks() { | |
| 737 | 738 | if (this.parent.hooks.beforeEach.length > 0) { | |
| 738 | - ArrayPrototypeUnshift( | ||
| 739 | + ArrayPrototypeUnshiftApply( | ||
| 739 | 740 | this.hooks.beforeEach, | |
| 740 | - ...ArrayPrototypeSlice(this.parent.hooks.beforeEach), | ||
| 741 | + ArrayPrototypeSlice(this.parent.hooks.beforeEach), | ||
| 741 | 742 | ); | |
| 742 | 743 | } | |
| 743 | 744 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments