Reviewed by Darin
authorkdecker <kdecker@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Jun 2004 22:16:48 +0000 (22:16 +0000)
committerkdecker <kdecker@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Jun 2004 22:16:48 +0000 (22:16 +0000)
 - fixed <rdar://problem/3680594>

        * kjs/object.cpp:
        (KJS::Error::create):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6774 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/object.cpp

index 38e76c9bbcb6785b010fb1c48cd29f0a5bd3a219..2f116076ac9281ca0af8cbeb48a4bd65cf28f3d7 100644 (file)
@@ -1,3 +1,12 @@
+2004-06-04  Kevin Decker  <kdecker@apple.com>
+
+        Reviewed by Darin
+       
+        - fixed <rdar://problem/3680594>
+
+        * kjs/object.cpp:
+        (KJS::Error::create):
+
 === Safari-143 ===
 
 2004-06-04  Darin Adler  <darin@apple.com>
index 9ec5f42ac4909f95c5a2426723b7522d9816dc43..dae2de6a1c94dcae326769e7b8778f78693f09e3 100644 (file)
@@ -530,6 +530,7 @@ Object Error::create(ExecState *exec, ErrorType errtype, const char *message,
   if (sourceId != -1)
     err.put(exec, "sourceId", Number(sourceId));
 
+  if(sourceURL)
    err.put(exec,"sourceURL", String(*sourceURL));
  
   return err;