Skip to content

Commit 1a794d2

Browse files
easysoft2k15alfonsogarciacaro
authored andcommitted
Use {} when Window, Global and Self are undefined (#663)
1 parent 4f3112d commit 1a794d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fable/Fable.Core/ts/Symbol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const fableGlobal: {
1010
const globalObj =
1111
typeof window !== "undefined" ? window
1212
: (typeof global !== "undefined" ? global
13-
: (typeof self !== "undefined" ? self : null));
13+
: (typeof self !== "undefined" ? self : {}));
1414
if (typeof globalObj.__FABLE_CORE__ === "undefined") {
1515
globalObj.__FABLE_CORE__ = {
1616
types: new Map<string, FunctionConstructor>(),

0 commit comments

Comments
 (0)