mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
//// [tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunctionCapturesArguments_es6.ts] ////
|
|
|
|
=== asyncArrowFunctionCapturesArguments_es6.ts ===
|
|
class C {
|
|
>C : Symbol(C, Decl(asyncArrowFunctionCapturesArguments_es6.ts, 0, 0))
|
|
|
|
method() {
|
|
>method : Symbol(C.method, Decl(asyncArrowFunctionCapturesArguments_es6.ts, 0, 9))
|
|
|
|
function other() {}
|
|
>other : Symbol(other, Decl(asyncArrowFunctionCapturesArguments_es6.ts, 1, 13))
|
|
|
|
var fn = async () => await other.apply(this, arguments);
|
|
>fn : Symbol(fn, Decl(asyncArrowFunctionCapturesArguments_es6.ts, 3, 9))
|
|
>other.apply : Symbol(CallableFunction.apply, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
|
|
>other : Symbol(other, Decl(asyncArrowFunctionCapturesArguments_es6.ts, 1, 13))
|
|
>apply : Symbol(CallableFunction.apply, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
|
|
>this : Symbol(C, Decl(asyncArrowFunctionCapturesArguments_es6.ts, 0, 0))
|
|
>arguments : Symbol(arguments)
|
|
}
|
|
}
|
|
|
|
function f() {
|
|
>f : Symbol(f, Decl(asyncArrowFunctionCapturesArguments_es6.ts, 5, 1))
|
|
|
|
return async () => async () => arguments.length;
|
|
>arguments.length : Symbol(IArguments.length, Decl(lib.es5.d.ts, --, --))
|
|
>arguments : Symbol(arguments)
|
|
>length : Symbol(IArguments.length, Decl(lib.es5.d.ts, --, --))
|
|
}
|