Skip to content

Commit

Permalink
Crash fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakepell committed May 20, 2023
1 parent da7233f commit c37adbb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ public FunctionDefinitionExpression(ScriptLoadingContext lcontext, bool pushSelf

private FunctionDefinitionExpression(ScriptLoadingContext lcontext, bool pushSelfParam, bool usesGlobalEnv, bool isLambda) : base(lcontext)
{
if (_usesGlobalEnv == usesGlobalEnv)
// This is correct or at least is broken in a way that works, don't change it to == unless you want
// bad things to happen. Bad bad things.
if (_usesGlobalEnv = usesGlobalEnv)
{
CheckTokenType(lcontext, TokenType.Function);
}
Expand Down

0 comments on commit c37adbb

Please sign in to comment.