[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kjs
From:       Harri Porten <porten () kde ! org>
Date:       2005-04-16 18:31:04
Message-ID: 20050416183104.EC0793CA () office ! kde ! org
[Download RAW message or body]

CVS commit by porten: 

made prototype read-only (JSC patch)


  M +2 -0      ChangeLog   1.57
  M +1 -1      bool_object.cpp   1.27
  M +4 -5      error_object.cpp   1.31


--- kdelibs/kjs/ChangeLog  #1.56:1.57
@@ -1,4 +1,6 @@
 2005-04-16  Harri Porten  <porten@kde.org>
 
+        * error_object.cpp: made prototype read-only (JSC patch) 
+
         * string_object.cpp: adopted tag casing and code formatting to JSC-style
 

--- kdelibs/kjs/bool_object.cpp  #1.26:1.27
@@ -106,5 +106,5 @@ BooleanObjectImp::BooleanObjectImp(ExecS
 {
   Value protect(this);
-  putDirect(prototypePropertyName, booleanProto,DontEnum|DontDelete|ReadOnly);
+  putDirect(prototypePropertyName, booleanProto, DontEnum|DontDelete|ReadOnly);
 
   // no. of arguments for constructor

--- kdelibs/kjs/error_object.cpp  #1.30:1.31
@@ -77,12 +77,12 @@ Value ErrorProtoFuncImp::call(ExecState 
   UString s = "Error";
 
-  Value v = thisObj.get(exec,namePropertyName);
+  Value v = thisObj.get(exec, namePropertyName);
   if (v.type() != UndefinedType) {
     s = v.toString(exec);
   }
 
-  v = thisObj.get(exec,messagePropertyName);
+  v = thisObj.get(exec, messagePropertyName);
   if (v.type() != UndefinedType) {
-    s += ": "+v.toString(exec);
+    s += " - "+v.toString(exec);
   }
 
@@ -158,5 +158,5 @@ NativeErrorImp::NativeErrorImp(ExecState
 
   putDirect(lengthPropertyName, NumberImp::one(), DontDelete|ReadOnly|DontEnum); // ECMA 15.11.7.5
-  putDirect(prototypePropertyName, proto, 0);
+  putDirect(prototypePropertyName, proto, DontDelete|ReadOnly|DontEnum);
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic