Skip to content

Commit

Permalink
Remove object spread syntax that esprima 4.0.1 doesn't like
Browse files Browse the repository at this point in the history
  • Loading branch information
charleshtrenholm committed Dec 16, 2021
1 parent b5d7cbf commit b3a0380
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,13 @@ define([
`this dynamic parameter will be omitted in the call to ${dd_options.service_function}.`
);
// dont include bad parameters that don't exist
return { ...acc };
return acc;
}
// replace dynamic values with actual param values
return { ...acc, [k]: params[d_param[0]] };
return Object.assign({}, acc, { [k]: params[d_param[0]] });
}
// return anything else as normal
return { ...acc, [k]: v };
return Object.assign({}, acc, { [k]: v });
}, {});
});
}
Expand Down

0 comments on commit b3a0380

Please sign in to comment.