Skip to content

Commit

Permalink
fix: duplex half once
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 15, 2023
1 parent 19f0acb commit 87cc291
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/primitives/src/primitives/fetch.js
Expand Up @@ -21,7 +21,7 @@ process.emitWarning = () => {}

class Request extends BaseRequest {
constructor(input, init) {
super(input, addDuplexToInit(init))
super(input, init instanceof BaseRequest ? init : addDuplexToInit(init))
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/cli/repl.ts
Expand Up @@ -14,7 +14,7 @@ const writer: createRepl.REPLWriter = (output) => {
}

const repl = createRepl.start({ prompt: 'ƒ => ', writer })
repl.setupHistory(join(homedir(), '.edge_runtime_repl_history'), () => { })
repl.setupHistory(join(homedir(), '.edge_runtime_repl_history'), () => {})

Object.getOwnPropertyNames(repl.context).forEach(
(mod) => delete repl.context[mod]
Expand Down

0 comments on commit 87cc291

Please sign in to comment.