فهرست منبع

Remove modification to execution context in strict mode.

Paul Vowles 10 سال پیش
والد
کامیت
3a1b6de5d4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Jint/Native/Function/ScriptFunctionInstance.cs

+ 1 - 1
Jint/Native/Function/ScriptFunctionInstance.cs

@@ -62,7 +62,7 @@ namespace Jint.Native.Function
                 JsValue thisBinding;
                 if (StrictModeScope.IsStrictModeCode)
                 {
-                    thisBinding = (thisArg == Undefined.Instance || thisArg == Null.Instance) ? Engine.Global : thisArg;
+                    thisBinding = thisArg;
                 }
                 else if (thisArg == Undefined.Instance || thisArg == Null.Instance)
                 {