Skip to content

Commit 152b8e2

Browse files
authored
Fix globals evaluation (#377)
(symbol, "javascript code") should be mapped to (symbol, value).
1 parent 6daf643 commit 152b8e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/castBackend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const castLibrary = (lib: any): Library => ({
1515
globals: Object.entries(lib.globals as object).map(entry => {
1616
/** The value that is passed is evaluated into an actual JS value */
1717
try {
18-
entry[0] = (window as any).eval(entry[1])
18+
entry[1] = (window as any).eval(entry[1])
1919
} catch (e) {}
2020
return entry
2121
})

0 commit comments

Comments
 (0)