Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix lint error
  • Loading branch information
MoonBall committed Jan 4, 2022
commit 77b84aff58fc0e949e61ea147170fffc96e4f737
14 changes: 7 additions & 7 deletions test/parallel/test-whatwg-readablestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,22 @@ const {
r1.cancel().finally(common.mustCall(() => {
const controllerState = r1[kState].controller[kState];

assert.deepEqual(controllerState.pullAlgorithm, undefined)
assert.deepEqual(controllerState.cancelAlgorithm, undefined)
assert.deepEqual(controllerState.sizeAlgorithm, undefined)
assert.strictEqual(controllerState.pullAlgorithm, undefined);
assert.strictEqual(controllerState.cancelAlgorithm, undefined);
assert.strictEqual(controllerState.sizeAlgorithm, undefined);
})).catch(() => {});

const r2 = new ReadableStream({
cancel() {
throw Error('Cancel Error');
throw new Error('Cancel Error');
}
});
r2.cancel().finally(common.mustCall(() => {
const controllerState = r2[kState].controller[kState];

assert.deepEqual(controllerState.pullAlgorithm, undefined)
assert.deepEqual(controllerState.cancelAlgorithm, undefined)
assert.deepEqual(controllerState.sizeAlgorithm, undefined)
assert.strictEqual(controllerState.pullAlgorithm, undefined);
assert.strictEqual(controllerState.cancelAlgorithm, undefined);
assert.strictEqual(controllerState.sizeAlgorithm, undefined);
})).catch(() => {});
}

Expand Down