Skip to content

Commit b69fba2

Browse files
committed
fixup: ...
1 parent 1752160 commit b69fba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli-repl/src/repl-paste-support.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ export function addReplEventForEvalReady(
7777
repl: REPLServer,
7878
key: keyof REPLServer
7979
) => {
80+
if (!repl[key]) return;
8081
const originalMethod = repl[key].bind(repl);
81-
if (!originalMethod) return;
8282
(repl as any)[key] = (...args: any[]) => {
8383
if (!before()) {
8484
return;

0 commit comments

Comments
 (0)