Skip to content

Commit

Permalink
ref Object from globalThis (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesomnus authored Dec 4, 2023
1 parent 6cdc5cb commit 63766cd
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,13 @@ export class InternalBinaryWrite implements CustomMethodGenerator {
undefined,
ts.createVariableDeclarationList([ts.createVariableDeclaration(ts.createIdentifier("k"), undefined, undefined)], ts.NodeFlags.Let),
ts.createCall(
ts.createPropertyAccess(ts.createIdentifier("Object"), ts.createIdentifier("keys")),
ts.createPropertyAccess(
ts.createPropertyAccess(
ts.createIdentifier("globalThis"),
ts.createIdentifier("Object")
),
ts.createIdentifier("keys")
),
undefined,
[fieldPropertyAccess]
),
Expand Down

0 comments on commit 63766cd

Please sign in to comment.