/third_party/typescript/tests/baselines/reference/ |
H A D | classStaticBlock22(target=es2022).js | 2 let await: "any"; 5 let await: any; // illegal, cannot declare a new binding for await 8 let { await } = {} as any; // illegal, cannot declare a new binding for await 11 let { await: other } = {} as any; // legal 14 let await; // illegal, cannot declare a new binding for await 17 function await() { }; // illegal 20 class await { }; // illega [all...] |
H A D | classStaticBlock22(target=esnext).js | 2 let await: "any"; 5 let await: any; // illegal, cannot declare a new binding for await 8 let { await } = {} as any; // illegal, cannot declare a new binding for await 11 let { await: other } = {} as any; // legal 14 let await; // illegal, cannot declare a new binding for await 17 function await() { }; // illegal 20 class await { }; // illega [all...] |
H A D | topLevelAwait.1(module=es2022,target=es2015).js | 5 await x; 7 // reparse element access as await 8 await [x]; 9 await [x, x]; 11 // reparse call as await 13 await (x); 14 await (f(), x); 15 await <number>(x); 16 await <number>(f(), x); 18 // reparse tagged template as await [all...] |
H A D | topLevelAwait.1(module=es2022,target=es2017).js | 5 await x; 7 // reparse element access as await 8 await [x]; 9 await [x, x]; 11 // reparse call as await 13 await (x); 14 await (f(), x); 15 await <number>(x); 16 await <number>(f(), x); 18 // reparse tagged template as await [all...] |
H A D | topLevelAwait.1(module=esnext,target=es2015).js | 5 await x; 7 // reparse element access as await 8 await [x]; 9 await [x, x]; 11 // reparse call as await 13 await (x); 14 await (f(), x); 15 await <number>(x); 16 await <number>(f(), x); 18 // reparse tagged template as await [all...] |
H A D | topLevelAwait.1(module=esnext,target=es2017).js | 5 await x; 7 // reparse element access as await 8 await [x]; 9 await [x, x]; 11 // reparse call as await 13 await (x); 14 await (f(), x); 15 await <number>(x); 16 await <number>(f(), x); 18 // reparse tagged template as await [all...] |
H A D | topLevelAwait.1(module=system,target=es2015).js | 5 await x; 7 // reparse element access as await 8 await [x]; 9 await [x, x]; 11 // reparse call as await 13 await (x); 14 await (f(), x); 15 await <number>(x); 16 await <number>(f(), x); 18 // reparse tagged template as await [all...] |
H A D | topLevelAwait.1(module=system,target=es2017).js | 5 await x; 7 // reparse element access as await 8 await [x]; 9 await [x, x]; 11 // reparse call as await 13 await (x); 14 await (f(), x); 15 await <number>(x); 16 await <number>(f(), x); 18 // reparse tagged template as await [all...] |
H A D | awaitInNonAsyncFunction.js | 5 for await (const _ of []); 6 return await p; 10 for await (const _ of []); 11 return await p; 15 for await (const _ of []); 16 await p; 20 for await (const _ of []); 21 return await p; 25 for await (const _ of []); 26 yield await [all...] |
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | function-await1.js | 15 /* This test checks await expressions (nothing else). */ 27 check_syntax_error("(async function await() {})") 28 check_syntax_error("(async function *await() {})") 29 check_syntax_error("async function f(await) {}") 30 check_syntax_error("(async function f(await) {})") 31 check_syntax_error("async function f(a = await new Promise) {}") 32 check_syntax_error("async function f() { function await() {} }") 33 check_syntax_error("async await => 0"); 34 check_syntax_error("async (await) => 0"); 35 check_syntax_error("async function f() { await () [all...] |
/third_party/node/test/parallel/ |
H A D | test-fs-promises.js | 99 await copyFile(fixtures.path('baz.js'), dest); 100 await access(dest); 108 handle = await getHandle(dest); 109 await func(handle); 112 await handle.close(); 125 await executeOnHandle(dest, async (handle) => { 132 await executeOnHandle(dest, async (handle) => { 133 let stats = await handle.stat(); 137 await handle.truncate(1); 139 stats = await handl [all...] |
H A D | test-fs-promises-file-handle-writeFile.js | 20 const fileHandle = await open(filePathForHandle, 'w+'); 24 await fileHandle.writeFile(buffer); 28 await fileHandle.close(); 35 const fileHandle = await open(filePathForHandle, 'w+'); 41 await assert.rejects(writeFile(fileHandle, buffer, { signal }), { 45 await fileHandle.close(); 86 const fileHandle = await open(dest, 'w+'); 88 await fileHandle.writeFile(stream); 93 await fileHandle.close(); 101 const fileHandle = await ope [all...] |
H A D | test-vm-module-errors.js | 13 await m.link(common.mustNotCall()); 40 await assert.rejects(async () => { 42 await m.link(invalidLinker); 52 await assert.rejects(async () => { 54 await m.link(common.mustNotCall()); 56 await m.link(common.mustNotCall()); 61 await assert.rejects(async () => { 65 await m.link(common.mustNotCall()); 70 await assert.rejects(async () => { 72 await [all...] |
H A D | test-worker-debug.js | 58 await waitForEvent(session, 'NodeWorker.detachedFromWorker'); 106 const notification = await notificationPromise; 136 await post('NodeWorker.enable', { waitForDebuggerOnStart: true }); 139 const { sessionId, waitingForDebugger } = await attached; 149 await workerSession.post('Debugger.enable'); 150 await workerSession.post('Runtime.enable'); 151 await workerSession.waitForBreakAfterCommand( 153 await workerSession.waitForBreakAfterCommand( 155 const msg = await consolePromise; 158 await Promis [all...] |
H A D | test-fs-promises-file-handle-read.js | 27 const fileHandle = await open(filePath, 'w+'); 28 const streamFileHandle = await open(filePath, 'w+'); 35 await read(fileHandle, Buffer.alloc(11), 0, 11, 0, options); 39 await fileHandle.close(); 43 for await (const chunk of stream) 48 await streamFileHandle.close(); 56 const fileHandle = await open(filePath, 'r'); 59 await read(fileHandle, Buffer.alloc(1), 0, 1, pos, options); 66 const fileHandle = await open(filePath, 'r'); 68 await fileHandl [all...] |
/third_party/node/deps/npm/test/lib/commands/ |
H A D | view.js | 268 const mockNpm = await _loadMockNpm(t, { 285 const { view, outputs } = await loadMockNpm(t, { config: { unicode: false } }) 286 await view.exec(['https://github.com/npm/green']) 291 const { view, outputs } = await loadMockNpm(t, { config: { unicode: false } }) 292 await view.exec(['green@1.0.0']) 297 const { view, outputs } = await loadMockNpm(t, { config: { unicode: true } }) 298 await view.exec(['green@1.0.0']) 303 const { view, outputs } = await loadMockNpm(t, { config: { unicode: false } }) 304 await view.exec(['black@1.0.0']) 309 const { view, outputs } = await loadMockNp [all...] |
H A D | outdated.js | 236 const res = await _mockNpm(t, { 263 await t.test('outdated global', async t => { 264 const { outdated, joinedOutput } = await mockNpm(t, { 268 await outdated.exec([]) 273 await t.test('outdated', async t => { 274 const { outdated, joinedOutput } = await mockNpm(t, { 280 await outdated.exec([]) 285 await t.test('outdated --omit=dev', async t => { 286 const { outdated, joinedOutput } = await mockNpm(t, { 293 await outdate [all...] |
H A D | owner.js | 53 const { npm } = await loadMockNpm(t) 54 await t.rejects( 62 const { npm, joinedOutput } = await loadMockNpm(t, { 76 await registry.package({ manifest }) 78 await npm.exec('owner', ['ls']) 83 const { npm } = await loadMockNpm(t, { 88 await t.rejects( 95 const { npm } = await loadMockNpm(t, { 99 await t.rejects( 107 const { npm } = await loadMockNp [all...] |
H A D | profile.js | 25 const mock = await mockNpm(t, { 60 const { profile } = await mockProfile(t) 61 await t.rejects(profile.exec([]), await profile.usage) 72 const { profile, result } = await mockProfile(t, { npmProfile: defaultNpmProfile }) 73 await profile.exec(['get']) 79 const { profile, result } = await mockProfile(t, { 84 await profile.exec(['get']) 90 const { profile, result } = await mockProfile(t, { 95 await profil [all...] |
H A D | fund.js | 179 const res = await mockNpm(t, { 201 const { fund, joinedOutput } = await setup(t, { 211 await fund() 216 const { fund, joinedOutput } = await setup(t, { 221 await fund() 226 const { fund, joinedOutput } = await setup(t, { 231 await fund() 261 const { fund, joinedOutput } = await setup(t, { 266 await fund() 271 const { fund, joinedOutput } = await setu [all...] |
H A D | ls.js | 94 const mock = await mockNpm(t, { 133 const { result, ls } = await mockLs(t, { 147 await ls.exec([]) 155 const { result, ls } = await mockLs(t, { 161 await ls.exec([]) 173 const { result, ls } = await mockLs(t, { 204 await ls.exec([]) 209 const { result, ls } = await mockLs(t, { 222 await ls.exec([]) 230 const { result, ls } = await mockL [all...] |
/third_party/python/Lib/test/test_asyncio/ |
H A D | test_locks.py | 33 await lock.acquire() 42 "object Lock can't be used in 'await' expression" 44 await lock 76 await asyncio.sleep(0.01) 80 r"object \w+ can't be used in 'await' expression" 82 with await lock: 90 self.assertTrue(await lock.acquire()) 93 if await lock.acquire(): 98 if await lock.acquire(): 103 if await loc [all...] |
H A D | test_taskgroups.py | 34 await asyncio.sleep(0.1) 38 await asyncio.sleep(0.2) 51 await asyncio.sleep(0.1) 55 await asyncio.sleep(0.2) 60 await asyncio.sleep(0.15) 69 await asyncio.sleep(1) 73 await asyncio.sleep(0.2) 78 await asyncio.sleep(0.15) 95 await asyncio.sleep(0.1) 101 await asynci [all...] |
H A D | test_queues.py | 31 await asyncio.sleep(0) 36 self.assertEqual(0, await getter) 45 await asyncio.sleep(0) 57 await self._test_repr_or_str(repr, True) 60 await self._test_repr_or_str(str, False) 70 await q.put(1) 72 self.assertEqual(1, await q.get()) 80 await q.put(1) 86 await q.put(i) 88 items = [await [all...] |
H A D | test_waitfor.py | 32 await asyncio.sleep(tosleep) 46 await asyncio.sleep(0) 48 await asyncio.wait({waitfortask}) 56 await asyncio.wait_for(t.run(), t.TASK_TIMEOUT / 2) 69 ret = await asyncio.wait_for(fut, 0) 87 await asyncio.wait_for(foo(), 0) 106 await asyncio.sleep(10) 112 await started 116 await asyncio.wait_for(fut, timeout) 133 await asynci [all...] |