Lines Matching refs:reject
114 const sinkWritePromise = new Promise((r, reject) => sinkWritePromiseRejectors.push(reject));
138 'closedPromise should reject with the error returned from the sink\'s write method')
140 'sinkWritePromise should reject before closedPromise')),
142 'writePromise should reject with the error returned from the sink\'s write method')
144 'sinkWritePromise should reject before writePromise')),
146 'writePromise2 should reject with the error returned from the sink\'s write method')
148 'sinkWritePromise should reject before writePromise2')),
167 'write() should reject with the error returned from the sink\'s write method')
169 }, 'when sink\'s write throws an error, the stream should become errored and the promise should reject');
182 'write() should reject with the error returned from the sink\'s write method ')
186 'writer.ready must reject with the error passed to the controller'),
188 'writer.closed must reject with the error passed to the controller')
191 }, 'writer.write(), ready and closed reject with the error passed to controller.error() made before sink.write' +
269 return Promise.reject(error1);
283 return promise_rejects_js(t, TypeError, writer.write(), 'write should reject');
284 }, 'writing to a released writer should reject the returned promise');