Closed
Description
lib Update Request
Configuration Check
My compilation target is ESNext
and my lib is ESNext
.
The method is in the file: lib.es2015.proxy.d.ts
[According to vscode command (Go to Definition)]
Missing / Incorrect Definition
This is about an incorrect method:
ProxyHandler.apply()
(The second argument to the Proxy constructor)
Current type definition:
apply? (target: T, thisArg: any, argArray?: any): any;
Actual type definition:
apply? (target: T, thisArg: any, argArray?: any[]): any;
Sample Code
<!--
What's some code using this that should work, but doesn't?
-->
This only makes this method even stricter,
so the only effect will be to make more code fail.
Documentation Link
https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-call-thisargument-argumentslist
Step 7 specifically creates an array, which is passed as the third argument to the ProxyHandler.apply method.
Edit
This also applies to ProxyHandler.construct
Metadata
Metadata
Assignees
Labels
No labels