Explorar o código

Adding missing message property on ErrorPrototype

Sebastien Ros %!s(int64=11) %!d(string=hai) anos
pai
achega
abe706ee71
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Jint/Native/Error/ErrorPrototype.cs

+ 1 - 0
Jint/Native/Error/ErrorPrototype.cs

@@ -18,6 +18,7 @@ namespace Jint.Native.Error
         {
             var obj = new ErrorPrototype(engine, name) { Extensible = true };
             obj.FastAddProperty("constructor", errorConstructor, true, false, true);
+            obj.FastAddProperty("message", "", true, false, true);
 
             if (name != "Error")
             {