Skip to content

Commit

Permalink
Remove mistaken condition inside property "Context.ThisBind"
Browse files Browse the repository at this point in the history
  • Loading branch information
nilproject committed Sep 11, 2022
1 parent d8b0db5 commit 388f94f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions NiL.JS/Core/Context.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,6 @@ public JSValue ThisBind
var c = this;
if (_thisBind == null)
{
if (_strict)
return JSValue.undefined;

for (; c._thisBind == null;)
{
if (c._parent._parent == null)
Expand Down

1 comment on commit 388f94f

@nilproject
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found thanks to sebastienros/jint#1294

Please sign in to comment.