-
-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
…execution context
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Jint.Tests.Runtime; | ||
|
||
public class EvaluationContextTests | ||
{ | ||
[Fact] | ||
public void ShouldThrowJavaScriptException() | ||
{ | ||
var mockedEngine = new Engine(); | ||
|
||
Expression expression = new Identifier(NodeType.MemberExpression.ToString()); | ||
|
||
Assert.Throws<Jint.Runtime.JavaScriptException>(() => AstExtensions.TryGetComputedPropertyKey(expression, mockedEngine)); | ||
Check failure on line 12 in Jint.Tests/Runtime/EvaluationContextTests.cs GitHub Actions / windowsJint.Tests.Runtime.EvaluationContextTests.ShouldThrowJavaScriptException
Check failure on line 12 in Jint.Tests/Runtime/EvaluationContextTests.cs GitHub Actions / macosJint.Tests.Runtime.EvaluationContextTests.ShouldThrowJavaScriptException
Check failure on line 12 in Jint.Tests/Runtime/EvaluationContextTests.cs GitHub Actions / linuxJint.Tests.Runtime.EvaluationContextTests.ShouldThrowJavaScriptException
|
||
} | ||
Check failure on line 13 in Jint.Tests/Runtime/EvaluationContextTests.cs GitHub Actions / windowsJint.Tests.Runtime.EvaluationContextTests.ShouldThrowJavaScriptException
|
||
} |