8000 Try fixing browser tests · optimizely/javascript-sdk@ce4e5bf · GitHub
[go: up one dir, main page]

Skip to content

Commit ce4e5bf

Browse files
committed
Try fixing browser tests
1 parent b071757 commit ce4e5bf

File tree

1 file changed

+4
-4
lines changed
  • packages/optimizely-sdk/lib/utils/fns

1 file changed

+4
-4
lines changed

packages/optimizely-sdk/lib/utils/fns/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ import { generateUUID as uuid, keyBy as keyByUtil } from '@optimizely/js-sdk-uti
1818
const MAX_SAFE_INTEGER_LIMIT = Math.pow(2, 53);
1919

2020
// eslint-disable-next-line
21-
export function assign(target: any, ...sources: any[]): any {
22-
if (!target) {
21+
export function assign(...sources: [any]): any {
22+
if (!sources[0]) {
2323
return {};
2424
}
2525
if (typeof Object.assign === 'function') {
26-
return Object.assign(target, ...sources);
26+
return Object.assign(...sources);
2727
} else {
28-
const to = Object(target);
28+
const to = Object(sources[0]);
2929
for (let index = 1; index < sources.length; index++) {
3030
const nextSource = sources[index];
3131
if (nextSource !== null && nextSource !== undefined) {

0 commit comments

Comments
 (0)
0