DescriptionResolve references to "this" the same way as normal variables
Make the parser handle references to "this" as unresolved variables, so the
same logic as for the rest of function parameters is used for the receiver.
Minor additions to the code generation handle copying the receiver to the
context, along with the rest of the function parameters.
Based on work by Adrian Perez de Castro <aperez@igalia.com>.
BUG=
LOG=N
Committed: https://crrev.com/18619d355192e2699203d12d9ebb9caea107b693
Cr-Commit-Position: refs/heads/master@{#28236}
Patch Set 1 : #
Total comments: 8
Patch Set 2 : All TF tests passing #
Total comments: 6
Patch Set 3 : Patch receiver in only one place #
Total comments: 1
Patch Set 4 : Add tests for "this" scoping in arrow functions #
Total comments: 7
Patch Set 5 : Rebase on master; fix nits #Patch Set 6 : Add ia32, arm, arm64 support #Patch Set 7 : Script contexts have empty function as their closure #Patch Set 8 : Rebase to apply cleanly #Patch Set 9 : Statically resolve "this" even inside "with" #
Total comments: 6
Patch Set 10 : Add TODO to fix fat-fingered "this" scoping in script context #
Total comments: 7
Patch Set 11 : Rebase and fix nits #
Messages
Total messages: 56 (13 generated)
|