소스 검색

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;
                 JsValue thisBinding;
                 if (StrictModeScope.IsStrictModeCode)
                 if (StrictModeScope.IsStrictModeCode)
                 {
                 {
-                    thisBinding = (thisArg == Undefined.Instance || thisArg == Null.Instance) ? Engine.Global : thisArg;
+                    thisBinding = thisArg;
                 }
                 }
                 else if (thisArg == Undefined.Instance || thisArg == Null.Instance)
                 else if (thisArg == Undefined.Instance || thisArg == Null.Instance)
                 {
                 {