/third_party/typescript/tests/baselines/reference/ |
H A D | exportDefaultFunctionInNamespace.js | 13 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14 return new (P || (P = Promise))(function (resolve, reject) {
17 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
H A D | importCallExpressionNestedAMD2.js | 19 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20 return new (P || (P = Promise))(function (resolve, reject) {
23 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
H A D | importCallExpressionNestedES20152.js | 15 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16 return new (P || (P = Promise))(function (resolve, reject) {
19 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
H A D | importCallExpressionNestedES20202.js | 16 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17 return new (P || (P = Promise))(function (resolve, reject) {
20 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
H A D | inferenceErasedSignatures.js | 60 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
61 return new (P || (P = Promise))(function (resolve, reject) {
64 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
H A D | invalidContinueInDownlevelAsync.js | 13 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14 return new (P || (P = Promise))(function (resolve, reject) {
17 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
H A D | awaitCallExpressionInSyncFunction.js | 3 const foo = await(Promise.resolve(1)); 10 const foo = await(Promise.resolve(1));
|
/third_party/curl/tests/http/clients/ |
H A D | h2-pausing.c | 184 struct curl_slist *resolve = NULL; in main() local 216 memset(&resolve, 0, sizeof(resolve)); in main() 219 resolve = curl_slist_append(resolve, resolve_buf); in main() 235 curl_easy_setopt(handles[i].h, CURLOPT_RESOLVE, resolve) != CURLE_OK || in main() 331 curl_slist_free_all(resolve); in main()
|
/test/xts/acts/security/huks/security_huks_reformed_test/huks_cipher_callback_BasicTest/entry/src/ohosTest/js/test/Cipher/ |
H A D | SecurityHuksAESBasicCallbackJsunit.test.js | 53 return new Promise((resolve, reject) => { 59 resolve(data); 87 return new Promise((resolve, reject) => { 93 resolve(data); 149 return new Promise((resolve, reject) => { 155 resolve(data); 196 return new Promise((resolve, reject) => { 202 resolve(data); 212 return new Promise((resolve, reject) => { 218 resolve(dat [all...] |
/third_party/typescript/tests/baselines/reference/convertToAsyncFunction/ |
H A D | convertToAsyncFunction_emptyCatch1.js | 4 return Promise.resolve().catch(); 10 return Promise.resolve();
|
H A D | convertToAsyncFunction_emptyCatch2.js | 4 return Promise.resolve(0).then(x => x).catch(); 10 const x = await Promise.resolve(0);
|
H A D | convertToAsyncFunction_UntypedFunction.js | 4 return Promise.resolve().then(res => console.log(res)); 10 const res = await Promise.resolve();
|
H A D | convertToAsyncFunction_callbackReturnsPromiseLastInChain.js | 4 return fetch('https://typescriptlang.org').then(s => Promise.resolve(s.statusText.length)); 11 return await Promise.resolve(s.statusText.length);
|
H A D | convertToAsyncFunction_catchBlockUniqueParams.js | 4 return Promise.resolve().then(x => 1).catch(x => "a").then(x => !!x); 12 const x = await Promise.resolve();
|
H A D | convertToAsyncFunction_importedFunction.js | 5 return Promise.resolve(0).then(fn); 12 const res = await Promise.resolve(0);
|
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | regression-test-issue-2107.js | 19 function executor(resolve) { 20 resolve(thenableWithError)
|
/third_party/node/test/fixtures/wpt/common/ |
H A D | rendering-utils.js | 9 return new Promise(resolve => { 15 resolve();
|
/third_party/node/lib/internal/modules/cjs/ |
H A D | loader.js | 240 process.send({ 'watch:require': ArrayPrototypeMap(extensions, (ext) => path.resolve(`${basePath}${ext}`)) }); 424 * @param {string[]} exts File extensions to try appending in order to resolve the file 432 return tryExtensions(path.resolve(requestPath, 'index'), exts, isMain); 435 const filename = path.resolve(requestPath, pkg); 438 tryExtensions(path.resolve(filename, 'index'), exts, isMain); 440 actual = tryExtensions(path.resolve(requestPath, 'index'), exts, isMain); 448 err.path = path.resolve(requestPath, 'package.json'); 453 const jsonPath = path.resolve(requestPath, 'package.json'); 467 * intact, otherwise resolve to the absolute realpath. 475 return path.resolve(requestPat [all...] |
/third_party/jerryscript/tests/jerry-test-suite/es2015/25/25.04/25.04.05/ |
H A D | 25.04.05-006.js | 18 var p = Promise.resolve(1).then(function(x) { 20 return Promise.resolve(2);
|
/third_party/node/deps/npm/node_modules/walk-up-path/dist/mjs/ |
H A D | index.js | 1 import { dirname, resolve } from 'path'; 3 for (path = resolve(path); path;) {
|
/third_party/node/lib/internal/dns/ |
H A D | callback_resolver.js | 90 // resolver in dns/promises.js with resolve methods that are based 93 Resolver.prototype.resolve = resolve; 95 function resolve(hostname, rrtype, callback) { function
|
/third_party/node/test/parallel/ |
H A D | test-http2-window-size.js | 18 return new Promise((resolve, reject) => { 71 resolve(); 97 let p = Promise.resolve();
|
H A D | test-runner-import-no-scheme.js | 24 () => require.resolve(name), 64 assert.strictEqual(require.resolve('test'), indexFile); 65 assert.strictEqual(require.resolve('test/reporters'), reportersIndexFile);
|
/third_party/nghttp2/src/ |
H A D | shrpx_dual_dns_resolver.cc | 55 int DualDNSResolver::resolve(const StringRef &host) { in resolve() function in shrpx::DualDNSResolver 58 rv4 = resolv4_.resolve(host, AF_INET); in resolve() 61 rv6 = resolv6_.resolve(host, AF_INET6); in resolve()
|
/third_party/node/deps/npm/node_modules/@npmcli/fs/lib/ |
H A D | move-file.js | 1 const { dirname, join, resolve, relative, isAbsolute } = require('path') 55 target = resolve(symDestination, relative(symSource, target)) 61 targetStat = await fs.stat(resolve(dirname(symSource), target))
|