/third_party/node/test/fixtures/wpt/streams/readable-streams/ |
D | bad-underlying-sources.any.js | 7 const theError = new Error('a unique string'); constant 9 assert_throws_exactly(theError, () => { 12 throw theError; 22 const theError = new Error('a unique string'); constant 24 assert_throws_exactly(theError, () => { 27 throw theError; 37 const theError = new Error('a unique string'); constant 38 assert_throws_exactly(theError, () => new ReadableStream({ 40 throw theError; 49 const theError = new Error('a unique string'); constant [all …]
|
D | bad-strategies.any.js | 6 const theError = new Error('a unique string'); constant 8 assert_throws_exactly(theError, () => { 11 throw theError; 48 const theError = { name: 'my error' }; variable 59 controller.error(theError); 68 …return promise_rejects_exactly(t, theError, rs.getReader().closed, 'closed should reject with the … 74 const theError = new Error('a unique string'); constant 78 assert_throws_exactly(theError, () => c.enqueue('a'), 'enqueue should throw the error'); 83 throw theError; 90 assert_equals(e, theError, 'closed should reject with the error'); [all …]
|
D | tee.any.js | 79 const theError = { name: 'boo!' }; variable 86 throw theError; 98 promise_rejects_exactly(t, theError, reader1.closed), 99 promise_rejects_exactly(t, theError, reader2.closed), 106 return promise_rejects_exactly(t, theError, reader2.read()); 108 .then(() => promise_rejects_exactly(t, theError, reader1.read())) 230 const theError = { name: 'boo!' }; variable 232 promise_rejects_exactly(t, theError, reader1.closed), 233 promise_rejects_exactly(t, theError, reader2.closed) 236 controller.error(theError); [all …]
|
D | templated.any.js | 8 const theError = { name: 'boo!' }; variable 67 c.error(theError); 70 }, theError); 75 c.error(theError); 78 }, theError); 83 return Promise.reject(theError); 86 }, theError); 91 return Promise.reject(theError); 94 }, theError); 103 controller.error(theError); [all …]
|
D | default-reader.any.js | 69 const theError = new Error('don\'t say i didn\'t warn ya'); constant 72 c.error(theError); 184 const theError = { name: 'unique error' }; variable 195 controller.error(theError); 202 promise_rejects_exactly(t, theError, promise1, '.closed before releasing lock'), 288 const theError = { name: 'unique error' }; variable 298 promise_rejects_exactly(t, theError, reader1.closed), 299 promise_rejects_exactly(t, theError, reader1.read()) 304 controller.error(theError); 311 promise_rejects_exactly(t, theError, reader2.closed), [all …]
|
D | garbage-collection.any.js | 43 const theError = new Error('boo'); constant 54 return delay(50).then(() => controller.error(theError)) 55 .then(() => promise_rejects_exactly(t, theError, closedPromise));
|
D | general.any.js | 150 const theError = new Error('rejected!'); constant 154 throw theError; 162 assert_equals(e, theError, 'promise should be rejected with the same error');
|
/third_party/node/test/fixtures/wpt/streams/readable-byte-streams/ |
D | tee.any.js | 133 const theError = { name: 'boo!' }; variable 141 throw theError; 161 await promise_rejects_exactly(t, theError, reader1.read(new Uint8Array(1))); 162 await promise_rejects_exactly(t, theError, reader2.read(new Uint8Array(1))); 165 promise_rejects_exactly(t, theError, reader1.closed), 166 promise_rejects_exactly(t, theError, reader2.closed) 260 const theError = { name: 'boo!' }; variable 262 promise_rejects_exactly(t, theError, reader1.closed), 263 promise_rejects_exactly(t, theError, reader2.closed) 266 controller.error(theError); [all …]
|
/third_party/node/test/js-native-api/test_exception/ |
D | test.js | 6 const theError = new Error('Some error'); constant 25 const throwTheError = () => { throw theError; }; 29 assert.strictEqual(returnedError, theError); 34 (err) => err === theError, 53 const throwTheError = class { constructor() { throw theError; } }; 57 assert.strictEqual(returnedError, theError); 62 (err) => err === theError,
|
/third_party/node/test/fixtures/wpt/streams/resources/ |
D | rs-test-templates.js | 686 const theError = { name: 'I\'ll be careful.' }; variable 689 throw theError; 695 promise_rejects_exactly(t, theError, branch1.cancel()), 696 promise_rejects_exactly(t, theError, branch2.cancel()) 703 const theError = { name: 'You just watch yourself!' }; variable 712 controller.error(theError); 715 promise_rejects_exactly(t, theError, branch1.cancel()), 716 promise_rejects_exactly(t, theError, branch2.cancel())
|
/third_party/node/test/js-native-api/test_error/ |
D | test.js | 6 const theError = new Error('Some error'); constant 18 assert.strictEqual(test_error.checkError(theError), true);
|