@@ -1057,7 +1057,7 @@ namespace Js
1057
1057
1058
1058
if (args.Info .Count > 2 )
1059
1059
{
1060
- if (JavascriptOperators::IsUndefinedObject (args[2 ], scriptContext ))
1060
+ if (JavascriptOperators::IsUndefinedObject (args[2 ]))
1061
1061
{
1062
1062
position = 0 ;
1063
1063
}
@@ -1813,10 +1813,10 @@ namespace Js
1813
1813
1814
1814
if (args.Info .Count > 1 )
1815
1815
{
1816
- idxStart = JavascriptOperators::IsUndefinedObject (args[1 ], scriptContext ) ? 0 : ConvertToIndex (args[1 ], scriptContext);
1816
+ idxStart = JavascriptOperators::IsUndefinedObject (args[1 ]) ? 0 : ConvertToIndex (args[1 ], scriptContext);
1817
1817
if (args.Info .Count > 2 )
1818
1818
{
1819
- idxEnd = JavascriptOperators::IsUndefinedObject (args[2 ], scriptContext ) ? len : ConvertToIndex (args[2 ], scriptContext);
1819
+ idxEnd = JavascriptOperators::IsUndefinedObject (args[2 ]) ? len : ConvertToIndex (args[2 ], scriptContext);
1820
1820
}
1821
1821
}
1822
1822
@@ -1881,7 +1881,7 @@ namespace Js
1881
1881
else
1882
1882
{
1883
1883
uint32 limit;
1884
- if (args.Info .Count < 3 || JavascriptOperators::IsUndefinedObject (args[2 ], scriptContext ))
1884
+ if (args.Info .Count < 3 || JavascriptOperators::IsUndefinedObject (args[2 ]))
1885
1885
{
1886
1886
limit = UINT_MAX;
1887
1887
}
@@ -1943,10 +1943,10 @@ namespace Js
1943
1943
1944
1944
if (args.Info .Count > 1 )
1945
1945
{
1946
- idxStart = JavascriptOperators::IsUndefinedObject (args[1 ], scriptContext ) ? 0 : ConvertToIndex (args[1 ], scriptContext);
1946
+ idxStart = JavascriptOperators::IsUndefinedObject (args[1 ]) ? 0 : ConvertToIndex (args[1 ], scriptContext);
1947
1947
if (args.Info .Count > 2 )
1948
1948
{
1949
- idxEnd = JavascriptOperators::IsUndefinedObject (args[2 ], scriptContext ) ? len : ConvertToIndex (args[2 ], scriptContext);
1949
+ idxEnd = JavascriptOperators::IsUndefinedObject (args[2 ]) ? len : ConvertToIndex (args[2 ], scriptContext);
1950
1950
}
1951
1951
}
1952
1952
@@ -1992,10 +1992,10 @@ namespace Js
1992
1992
1993
1993
if (args.Info .Count > 1 )
1994
1994
{
1995
- idxStart = JavascriptOperators::IsUndefinedObject (args[1 ], scriptContext ) ? 0 : ConvertToIndex (args[1 ], scriptContext);
1995
+ idxStart = JavascriptOperators::IsUndefinedObject (args[1 ]) ? 0 : ConvertToIndex (args[1 ], scriptContext);
1996
1996
if (args.Info .Count > 2 )
1997
1997
{
1998
- idxEnd = JavascriptOperators::IsUndefinedObject (args[2 ], scriptContext ) ? len : ConvertToIndex (args[2 ], scriptContext);
1998
+ idxEnd = JavascriptOperators::IsUndefinedObject (args[2 ]) ? len : ConvertToIndex (args[2 ], scriptContext);
1999
1999
}
2000
2000
}
2001
2001
if (idxStart < 0 )
@@ -2089,7 +2089,7 @@ namespace Js
2089
2089
}
2090
2090
2091
2091
JavascriptString * fillerString = nullptr ;
2092
- if (args.Info .Count > 2 && !JavascriptOperators::IsUndefinedObject (args[2 ], scriptContext ))
2092
+ if (args.Info .Count > 2 && !JavascriptOperators::IsUndefinedObject (args[2 ]))
2093
2093
{
2094
2094
JavascriptString *argStr = JavascriptConversion::ToString (args[2 ], scriptContext);
2095
2095
if (argStr->GetLength () > 0 )
@@ -2509,7 +2509,7 @@ namespace Js
2509
2509
2510
2510
if (args.Info .Count > 1 )
2511
2511
{
2512
- if (!JavascriptOperators::IsUndefinedObject (args[1 ], scriptContext ))
2512
+ if (!JavascriptOperators::IsUndefinedObject (args[1 ]))
2513
2513
{
2514
2514
double countDbl = JavascriptConversion::ToInteger (args[1 ], scriptContext);
2515
2515
if (JavascriptNumber::IsPosInf (countDbl) || countDbl < 0.0 )
@@ -2600,7 +2600,7 @@ namespace Js
2600
2600
2601
2601
if (args.Info .Count > 2 )
2602
2602
{
2603
- if (!JavascriptOperators::IsUndefinedObject (args[2 ], scriptContext ))
2603
+ if (!JavascriptOperators::IsUndefinedObject (args[2 ]))
2604
2604
{
2605
2605
startPosition = ConvertToIndex (args[2 ], scriptContext); // this is to adjust corner cases like MAX_VALUE
2606
2606
startPosition = min (max (startPosition, 0 ), thisStrLen);
@@ -2655,7 +2655,7 @@ namespace Js
2655
2655
2656
2656
if (args.Info .Count > 2 )
2657
2657
{
2658
- if (!JavascriptOperators::IsUndefinedObject (args[2 ], scriptContext ))
2658
+ if (!JavascriptOperators::IsUndefinedObject (args[2 ]))
2659
2659
{
2660
2660
endPosition = ConvertToIndex (args[2 ], scriptContext); // this is to adjust corner cases like MAX_VALUE
2661
2661
endPosition = min (max (endPosition, 0 ), thisStrLen);
0 commit comments