|
@@ -5,11 +5,11 @@ namespace Jint.Tests.Runtime.Converters
|
|
|
{
|
|
|
public class NegateBoolConverter : IObjectConverter
|
|
|
{
|
|
|
- public bool TryConvert(object value, out JsValue result)
|
|
|
+ public bool TryConvert(Engine engine, object value, out JsValue result)
|
|
|
{
|
|
|
- if (value is bool)
|
|
|
+ if (value is bool b)
|
|
|
{
|
|
|
- result = !(bool) value;
|
|
|
+ result = !b;
|
|
|
return true;
|
|
|
}
|
|
|
|