Skip to content

Commit c335469

Browse files
committed
More updates.
1 parent 9eee567 commit c335469

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

experimenter/tests/integration/nimbus/utils/filter_expression.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
async function remoteSettings(targetingString, recipe) {
2-
/*
3-
Arguments contains 2 items.
4-
arguments[0] - the JEXL targeting string
5-
arguments[1] - the experiment recipe
6-
*/
7-
82
const { TelemetryEnvironment } = ChromeUtils.importESModule("resource://gre/modules/TelemetryEnvironment.sys.mjs");
93
await TelemetryEnvironment.onInitialized();
104

@@ -36,8 +30,13 @@ async function remoteSettings(targetingString, recipe) {
3630
}
3731
}
3832

39-
const [targetingString, recipe] = arguments;
40-
const callback = arguments[arguments.length - 1]
33+
/*
34+
Arguments contains 2 items.
35+
arguments[0] - the JEXL targeting string
36+
arguments[1] - the experiment recipe
37+
arguments[3] - the callback from selenium
38+
*/
39+
const [targetingString, recipe, callback] = arguments;
4140

4241
remoteSettings(targetingString, recipe)
4342
.then(result => {

0 commit comments

Comments
 (0)