Skip to content

Commit

Permalink
fix(n4s): use a target function in ES5 browsers as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Jan 10, 2022
1 parent edeff9e commit 7b2c4de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/n4s/src/runtime/enforce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function genEnforce(): TEnforce {
target[ruleName] = genEnforceLazy(ruleName);
});

return target;
return assign(enforceEager, target);
}

return new Proxy(assign(enforceEager, target) as TEnforce, {
Expand Down

1 comment on commit 7b2c4de

@vercel
Copy link

@vercel vercel bot commented on 7b2c4de Jan 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.