Skip to content

Commit aa70d93

Browse files
refactor: move istanbul comment
1 parent 7f7b919 commit aa70d93

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/replayProxy/replayProxy.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ export function replayProxy(proxy: unknown, target: unknown): void {
6161
Object.preventExtensions(parent);
6262
} else if (isSet(stackItem)) {
6363
parent[stackItem.prop] = stackItem.value;
64-
} /* istanbul ignore else */ else if (isSetPrototypeOf(stackItem)) {
65-
Object.setPrototypeOf(parent, stackItem.prototype);
64+
} else {
65+
/* istanbul ignore else */
66+
if (isSetPrototypeOf(stackItem)) {
67+
Object.setPrototypeOf(parent, stackItem.prototype);
68+
}
6669
}
6770
if ("self" in stackItem) {
6871
targetStateMap.set(stackItem.self, value);

0 commit comments

Comments
 (0)