Skip to content

Commit

Permalink
Check if existed before overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
thephoenixofthevoid committed Jun 10, 2021
1 parent 1bd0f34 commit 56e919d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Reflect.MIT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,10 @@ declare global {
}
}

Object.assign(Reflect, Reflection);

for (const key in Reflection) {
if (!Reflect.has(Reflect, key)) {
const impl = Reflect.get(Reflection, key)
Reflect.set(Reflect, key, impl)
}
}

0 comments on commit 56e919d

Please sign in to comment.