瀏覽代碼

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)
                 {