Explorar el Código

message may not be a string

yinyue200 hace 7 años
padre
commit
7792facc61
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Jint/Runtime/JavaScriptException.cs

+ 1 - 1
Jint/Runtime/JavaScriptException.cs

@@ -73,7 +73,7 @@ namespace Jint.Runtime
             if (error.IsObject())
             {
                 var oi = error.AsObject();
-                var message = oi.Get("message").AsString();
+                var message = oi.Get("message").ToString();
                 return message;
             }
             if (error.IsString())