Skip to content

Commit 63766cd

Browse files
authored
ref Object from globalThis (#611)
1 parent 6cdc5cb commit 63766cd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/plugin/src/message-type-extensions/internal-binary-write.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,13 @@ export class InternalBinaryWrite implements CustomMethodGenerator {
610610
undefined,
611611
ts.createVariableDeclarationList([ts.createVariableDeclaration(ts.createIdentifier("k"), undefined, undefined)], ts.NodeFlags.Let),
612612
ts.createCall(
613-
ts.createPropertyAccess(ts.createIdentifier("Object"), ts.createIdentifier("keys")),
613+
ts.createPropertyAccess(
614+
ts.createPropertyAccess(
615+
ts.createIdentifier("globalThis"),
616+
ts.createIdentifier("Object")
617+
),
618+
ts.createIdentifier("keys")
619+
),
614620
undefined,
615621
[fieldPropertyAccess]
616622
),

0 commit comments

Comments
 (0)