@@ -1296,8 +1296,8 @@ public void ShouldExecuteDromaeoBase64()
1296
1296
public void ShouldExecuteKnockoutWithoutErrorWhetherTolerantOrIntolerant ( )
1297
1297
{
1298
1298
var content = GetEmbeddedFile ( "knockout-3.4.0.js" ) ;
1299
- _engine . Execute ( content , new ParserOptions { Tolerant = true } ) ;
1300
- _engine . Execute ( content , new ParserOptions { Tolerant = false } ) ;
1299
+ _engine . Execute ( content , new ScriptParsingOptions { Tolerant = true } ) ;
1300
+ _engine . Execute ( content , new ScriptParsingOptions { Tolerant = false } ) ;
1301
1301
}
1302
1302
1303
1303
[ Fact ]
@@ -1314,7 +1314,7 @@ public void ShouldNotAllowDuplicateProtoProperty()
1314
1314
{
1315
1315
var code = "if({ __proto__: [], __proto__:[] } instanceof Array) {}" ;
1316
1316
1317
- Exception ex = Assert . Throws < ParseErrorException > ( ( ) => _engine . Execute ( code , new ParserOptions { Tolerant = false } ) ) ;
1317
+ Exception ex = Assert . Throws < ParseErrorException > ( ( ) => _engine . Execute ( code , new ScriptParsingOptions { Tolerant = false } ) ) ;
1318
1318
Assert . Contains ( "Duplicate __proto__ fields are not allowed in object literals" , ex . Message ) ;
1319
1319
1320
1320
ex = Assert . Throws < JavaScriptException > ( ( ) => _engine . Execute ( $ "eval('{ code } ')") ) ;
@@ -2944,7 +2944,7 @@ public void ExecuteWithSourceShouldTriggerBeforeEvaluateEvent()
2944
2944
public void ExecuteWithParserOptionsShouldTriggerBeforeEvaluateEvent ( )
2945
2945
{
2946
2946
TestBeforeEvaluateEvent (
2947
- ( engine , code ) => engine . Execute ( code , ParserOptions . Default ) ,
2947
+ ( engine , code ) => engine . Execute ( code , ScriptParsingOptions . Default ) ,
2948
2948
expectedSource : "<anonymous>"
2949
2949
) ;
2950
2950
}
@@ -2953,7 +2953,7 @@ public void ExecuteWithParserOptionsShouldTriggerBeforeEvaluateEvent()
2953
2953
public void ExecuteWithSourceAndParserOptionsShouldTriggerBeforeEvaluateEvent ( )
2954
2954
{
2955
2955
TestBeforeEvaluateEvent (
2956
- ( engine , code ) => engine . Execute ( code , "mysource" , ParserOptions . Default ) ,
2956
+ ( engine , code ) => engine . Execute ( code , "mysource" , ScriptParsingOptions . Default ) ,
2957
2957
expectedSource : "mysource"
2958
2958
) ;
2959
2959
}
@@ -2980,7 +2980,7 @@ public void EvaluateWithSourceShouldTriggerBeforeEvaluateEvent()
2980
2980
public void EvaluateWithParserOptionsShouldTriggerBeforeEvaluateEvent ( )
2981
2981
{
2982
2982
TestBeforeEvaluateEvent (
2983
- ( engine , code ) => engine . Evaluate ( code , ParserOptions . Default ) ,
2983
+ ( engine , code ) => engine . Evaluate ( code , ScriptParsingOptions . Default ) ,
2984
2984
expectedSource : "<anonymous>"
2985
2985
) ;
2986
2986
}
@@ -2989,7 +2989,7 @@ public void EvaluateWithParserOptionsShouldTriggerBeforeEvaluateEvent()
2989
2989
public void EvaluateWithSourceAndParserOptionsShouldTriggerBeforeEvaluateEvent ( )
2990
2990
{
2991
2991
TestBeforeEvaluateEvent (
2992
- ( engine , code ) => engine . Evaluate ( code , "mysource" , ParserOptions . Default ) ,
2992
+ ( engine , code ) => engine . Evaluate ( code , "mysource" , ScriptParsingOptions . Default ) ,
2993
2993
expectedSource : "mysource"
2994
2994
) ;
2995
2995
}
0 commit comments