This repository has been archived by the owner on Oct 15, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Merge chakra-core/ChakraCore@ddbe1a2ae8] [MERGE #3971 @boingoing] Do…
… not load 'this' explicitly for class expression call target Merge pull request #3971 from boingoing:EmitCallTargetClassDecl We had a special case for when a class expression is emitted as a call target which tried to load the 'this' value for the enclosing function. Sometimes enclosing function has no 'this' binding (as in global function or global lambda) which would mean there is no 'this' symbol for us to load leading to null dereference. Since class constructor cannot be called without the new keyword and we always construct the value assigned to 'this' during function prolog, there doesn't seem to be any reason at all to even load the 'this' value here. Fixes: https://microsoft.visualstudio.com/OS/_workitems?id=14256595&_a=edit
- Loading branch information