Skip to content

Commit

Permalink
chore: reset
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Apr 14, 2024
1 parent b189357 commit 682a8d7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/workerd/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,17 +216,15 @@ export async function createWorkerdDevEnvironment(
get(_target, prop, _receiver) {
return api.eval(
entry,
(mod: any, exportName: any, prop: any) =>
mod[exportName][prop],
(ctx) => ctx.exports[ctx.args[0]][ctx.args[1]],
exportName,
prop,
);
},
apply(_target, _thisArg, argArray) {
return api.eval(
entry,
(mod: any, exportName: any, argArray: any) =>
mod[exportName](...argArray),
(ctx) => ctx.exports[ctx.args[0]](...ctx.args[1]),
exportName,
argArray,
);
Expand Down

0 comments on commit 682a8d7

Please sign in to comment.