Home
last modified time | relevance | path

Searched refs:thisArg (Results 1 - 25 of 177) sorted by relevance

12345678

/third_party/typescript/tests/baselines/reference/
H A DjsFileCompilationRestParamJsDocFunction.js4 * with the `this` binding of `thisArg` and the arguments of `args`.
8 * @param {*} thisArg The `this` binding of `func`.
12 function apply(func, thisArg, ...args) {
15 case 0: return func.call(thisArg);
16 case 1: return func.call(thisArg, args[0]);
17 case 2: return func.call(thisArg, args[0], args[1]);
18 case 3: return func.call(thisArg, args[0], args[1], args[2]);
20 return func.apply(thisArg, args);
31 * with the `this` binding of `thisArg` and the arguments of `args`.
35 * @param {*} thisArg Th
[all...]
H A DtypedArrays.js137 function CreateTypedArraysFromThisObj(obj:ArrayLike<number>, mapFn: (n:number, v:number)=> number, thisArg: {}) {
139 typedArrays[0] = Int8Array.from(obj, mapFn, thisArg);
140 typedArrays[1] = Uint8Array.from(obj, mapFn, thisArg);
141 typedArrays[2] = Int16Array.from(obj, mapFn, thisArg);
142 typedArrays[3] = Uint16Array.from(obj, mapFn, thisArg);
143 typedArrays[4] = Int32Array.from(obj, mapFn, thisArg);
144 typedArrays[5] = Uint32Array.from(obj, mapFn, thisArg);
145 typedArrays[6] = Float32Array.from(obj, mapFn, thisArg);
146 typedArrays[7] = Float64Array.from(obj, mapFn, thisArg);
147 typedArrays[8] = Uint8ClampedArray.from(obj, mapFn, thisArg);
[all...]
H A Demitter.asyncGenerators.classMethods.es2015.js65 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
67 var g = generator.apply(thisArg, _arguments || []), i, q = [];
84 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
86 var g = generator.apply(thisArg, _arguments || []), i, q = [];
104 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
106 var g = generator.apply(thisArg, _arguments || []), i, q = [];
136 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
138 var g = generator.apply(thisArg, _arguments || []), i, q = [];
156 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
158 var g = generator.apply(thisArg, _argument
[all...]
H A Demitter.asyncGenerators.functionDeclarations.es2015.js34 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
36 var g = generator.apply(thisArg, _arguments || []), i, q = [];
51 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
53 var g = generator.apply(thisArg, _arguments || []), i, q = [];
69 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
71 var g = generator.apply(thisArg, _arguments || []), i, q = [];
99 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
101 var g = generator.apply(thisArg, _arguments || []), i, q = [];
117 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
119 var g = generator.apply(thisArg, _argument
[all...]
H A Demitter.asyncGenerators.functionExpressions.es2015.js34 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
36 var g = generator.apply(thisArg, _arguments || []), i, q = [];
51 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
53 var g = generator.apply(thisArg, _arguments || []), i, q = [];
69 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
71 var g = generator.apply(thisArg, _arguments || []), i, q = [];
99 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
101 var g = generator.apply(thisArg, _arguments || []), i, q = [];
117 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
119 var g = generator.apply(thisArg, _argument
[all...]
H A Demitter.asyncGenerators.objectLiteralMethods.es2015.js48 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
50 var g = generator.apply(thisArg, _arguments || []), i, q = [];
67 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
69 var g = generator.apply(thisArg, _arguments || []), i, q = [];
87 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
89 var g = generator.apply(thisArg, _arguments || []), i, q = [];
119 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
121 var g = generator.apply(thisArg, _arguments || []), i, q = [];
139 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
141 var g = generator.apply(thisArg, _argument
[all...]
H A DobjectTypeWithCallSignatureHidingMembersOfFunction.js8 call(thisArg: number, ...argArray: number[]): any;
13 var r1b: (thisArg: number, ...argArray: number[]) => void = i.call;
19 call(thisArg: number, ...argArray: number[]): any;
23 var r2b: (thisArg: number, ...argArray: number[]) => void = x.call;
H A DobjectTypeWithConstructSignatureHidingMembersOfFunction.js5 call(thisArg: number, ...argArray: number[]): any;
10 var r1b: (thisArg: number, ...argArray: number[]) => void = i.call;
16 call(thisArg: number, ...argArray: number[]): any;
20 var r2b: (thisArg: number, ...argArray: number[]) => void = x.call;
H A Demitter.asyncGenerators.functionDeclarations.es5.js33 var __generator = (this && this.__generator) || function (thisArg, body) {
55 op = body.call(thisArg, _);
61 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
63 var g = generator.apply(thisArg, _arguments || []), i, q = [];
80 var __generator = (this && this.__generator) || function (thisArg, body) {
102 op = body.call(thisArg, _);
108 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
110 var g = generator.apply(thisArg, _arguments || []), i, q = [];
134 var __generator = (this && this.__generator) || function (thisArg, body) {
156 op = body.call(thisArg,
[all...]
H A Demitter.asyncGenerators.functionExpressions.es5.js33 var __generator = (this && this.__generator) || function (thisArg, body) {
55 op = body.call(thisArg, _);
61 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
63 var g = generator.apply(thisArg, _arguments || []), i, q = [];
80 var __generator = (this && this.__generator) || function (thisArg, body) {
102 op = body.call(thisArg, _);
108 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
110 var g = generator.apply(thisArg, _arguments || []), i, q = [];
134 var __generator = (this && this.__generator) || function (thisArg, body) {
156 op = body.call(thisArg,
[all...]
H A Demitter.asyncGenerators.objectLiteralMethods.es5.js47 var __generator = (this && this.__generator) || function (thisArg, body) {
69 op = body.call(thisArg, _);
75 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
77 var g = generator.apply(thisArg, _arguments || []), i, q = [];
96 var __generator = (this && this.__generator) || function (thisArg, body) {
118 op = body.call(thisArg, _);
124 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
126 var g = generator.apply(thisArg, _arguments || []), i, q = [];
152 var __generator = (this && this.__generator) || function (thisArg, body) {
174 op = body.call(thisArg,
[all...]
H A DobjectTypeWithCallSignatureHidingMembersOfExtendedFunction.js13 call(thisArg: number, ...argArray: number[]): any;
18 var r1b: (thisArg: number, ...argArray: number[]) => void = i.call;
26 call(thisArg: number, ...argArray: number[]): any;
30 var r2b: (thisArg: number, ...argArray: number[]) => void = x.call;
H A DobjectTypeWithConstructSignatureHidingMembersOfExtendedFunction.js10 call(thisArg: number, ...argArray: number[]): any;
15 var r1b: (thisArg: number, ...argArray: number[]) => void = i.call;
23 call(thisArg: number, ...argArray: number[]): any;
27 var r2b: (thisArg: number, ...argArray: number[]) => void = x.call;
H A DasyncFunctionsAcrossFiles.js19 var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
25 step((generator = generator.apply(thisArg, _arguments || [])).next());
35 var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
41 step((generator = generator.apply(thisArg, _arguments || [])).next());
H A Demitter.asyncGenerators.classMethods.es5.js64 var __generator = (this && this.__generator) || function (thisArg, body) {
86 op = body.call(thisArg, _);
92 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
94 var g = generator.apply(thisArg, _arguments || []), i, q = [];
116 var __generator = (this && this.__generator) || function (thisArg, body) {
138 op = body.call(thisArg, _);
144 var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
146 var g = generator.apply(thisArg, _arguments || []), i, q = [];
175 var __generator = (this && this.__generator) || function (thisArg, body) {
197 op = body.call(thisArg,
[all...]
/third_party/jerryscript/tests/jerry/es2015/
H A Darray-from.js117 // Assert that calling mapfn with / without thisArg in sloppy and strict modes
129 function testArrayFrom(thisArg, constructor) {
130 assertArrayLikeEquals(Array.from.call(thisArg, [], undefined), [], constructor);
131 assertArrayLikeEquals(Array.from.call(thisArg, NaN), [], constructor);
132 assertArrayLikeEquals(Array.from.call(thisArg, Infinity), [], constructor);
133 assertArrayLikeEquals(Array.from.call(thisArg, 10000000), [], constructor);
134 assertArrayLikeEquals(Array.from.call(thisArg, 'test'), ['t', 'e', 's', 't'], constructor);
136 assertArrayLikeEquals(Array.from.call(thisArg,
138 assertArrayLikeEquals(Array.from.call(thisArg, { length: -1, '0': { 'foo': 'bar' } }), [], constructor);
139 assertArrayLikeEquals(Array.from.call(thisArg,
[all...]
/third_party/node/test/parallel/
H A Dtest-diagnostics-channel-tracing-channel-async.js11 const thisArg = { baz: 'buz' };
36 assert.deepStrictEqual(this, thisArg);
38 }, 0, input, thisArg, common.mustCall((err, res) => {
44 assert.deepStrictEqual(this, thisArg);
46 }, input, thisArg, expectedResult).then(
55 channel.traceCallback(common.mustNotCall(), 0, input, thisArg, 1, 2, 3);
H A Dtest-diagnostics-channel-tracing-channel-async-error.js11 const thisArg = { baz: 'buz' };
31 assert.deepStrictEqual(this, thisArg);
33 }, 0, input, thisArg, common.mustCall((err, res) => {
39 assert.deepStrictEqual(this, thisArg);
41 }, input, thisArg, expectedError).then(
H A Dtest-diagnostics-channel-tracing-channel-sync.js11 const thisArg = { baz: 'buz' };
34 assert.strictEqual(this, thisArg);
36 }, input, thisArg, arg);
43 assert.strictEqual(this, thisArg);
45 }, input, thisArg, arg);
H A Dtest-async-hooks-run-in-async-scope-this-arg.js3 // Test that passing thisArg to runInAsyncScope() works.
9 const thisArg = {};
14 assert.strictEqual(this, thisArg);
17 res.runInAsyncScope(common.mustCall(callback), thisArg);
/third_party/node/test/js-native-api/test_new_target/
H A Dtest_new_target.c8 napi_value thisArg; in BaseClass() local
9 NODE_API_CALL(env, napi_get_cb_info(env, info, NULL, NULL, &thisArg, NULL)); in BaseClass()
15 NODE_API_CALL(env, napi_strict_equals(env, newTargetArg, thisArg, &result)); in BaseClass()
23 return thisArg; in BaseClass()
32 napi_value thisArg; in Constructor() local
33 NODE_API_CALL(env, napi_get_cb_info(env, info, &argc, &argv, &thisArg, NULL)); in Constructor()
46 return thisArg; in Constructor()
/third_party/node/src/
H A Djsvm_types.h587 JSVM_Value thisArg,
594 JSVM_Value thisArg,
600 JSVM_Value thisArg,
605 JSVM_Value thisArg,
611 JSVM_Value thisArg,
618 JSVM_Value thisArg,
624 JSVM_Value thisArg,
629 JSVM_Value thisArg,
/third_party/node/lib/
H A Ddiagnostics_channel.js150 runStores(data, fn, thisArg, ...args) {
153 return ReflectApply(fn, thisArg, args);
205 runStores(data, fn, thisArg, ...args) {
206 return ReflectApply(fn, thisArg, args);
303 traceSync(fn, context = {}, thisArg, ...args) {
308 const result = ReflectApply(fn, thisArg, args);
321 tracePromise(fn, context = {}, thisArg, ...args) {
343 let promise = ReflectApply(fn, thisArg, args);
359 traceCallback(fn, position = -1, context = {}, thisArg, ...args) {
390 return ReflectApply(fn, thisArg, arg
[all...]
H A Dasync_hooks.js197 runInAsyncScope(fn, thisArg, ...args) {
203 ReflectApply(fn, thisArg, args);
228 bind(fn, thisArg) {
231 if (thisArg === undefined) {
238 bound = FunctionPrototypeBind(this.runInAsyncScope, this, fn, thisArg);
259 static bind(fn, type, thisArg) {
261 return (new AsyncResource(type || 'bound-anonymous-fn')).bind(fn, thisArg);
/third_party/node/deps/npm/node_modules/function-bind/test/
H A Dindex.js211 t.test('sets a correct length without thisArg', function (st) {
218 t.test('sets a correct length with thisArg', function (st) {
225 t.test('sets a correct length without thisArg and first argument', function (st) {
232 t.test('sets a correct length with thisArg and first argument', function (st) {
239 t.test('sets a correct length without thisArg and too many arguments', function (st) {
246 t.test('sets a correct length with thisArg and too many arguments', function (st) {

Completed in 27 milliseconds

12345678