Lines Matching refs:close
179 c.close();
204 c.close();
205 assert_throws_js(TypeError, () => c.close(), 'second call to close should throw a TypeError');
209 }, 'Underlying source: calling close twice on an empty stream should throw the second time');
218 c.close();
219 assert_throws_js(TypeError, () => c.close(), 'second call to close should throw a TypeError');
235 }, 'Underlying source: calling close twice on a non-empty stream should throw the second time');
249 assert_throws_js(TypeError, () => controller.close(), 'Calling close after canceling should throw');
255 }, 'Underlying source: calling close on an empty canceled stream should throw');
270 assert_throws_js(TypeError, () => controller.close(), 'Calling close after canceling should throw');
276 }, 'Underlying source: calling close on a non-empty canceled stream should throw');
286 assert_throws_js(TypeError, () => c.close(), 'call to close should throw a TypeError');
296 }, 'Underlying source: calling close after error should throw');
324 c.close();
332 }, 'Underlying source: calling error after close should not throw');