[webkit-changes] cvs commit: JavaScriptCore/kjs string_object.cpp

Timothy thatcher at opensource.apple.com
Mon Nov 14 11:32:43 PST 2005


thatcher    05/11/14 11:32:42

  Modified:    kjs      Tag: Safari-1-3-branch string_object.cpp
  Log:
  Build fix.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.31.6.2  +7 -7      JavaScriptCore/kjs/string_object.cpp
  
  Index: string_object.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/string_object.cpp,v
  retrieving revision 1.31.6.1
  retrieving revision 1.31.6.2
  diff -u -r1.31.6.1 -r1.31.6.2
  --- string_object.cpp	11 Nov 2005 19:18:51 -0000	1.31.6.1
  +++ string_object.cpp	14 Nov 2005 19:32:41 -0000	1.31.6.2
  @@ -305,17 +305,17 @@
             int completeMatchStart = (*ovector)[0];
             List args;
   
  -          args.append(Value(matchString));
  +          args.append(String(matchString));
             
             for (unsigned i = 0; i < reg->subPatterns(); i++) {
                 int matchStart = (*ovector)[(i + 1) * 2];
                 int matchLen = (*ovector)[(i + 1) * 2 + 1] - matchStart;
                 
  -              args.append(Value(source.substr(matchStart, matchLen)));
  +              args.append(String(source.substr(matchStart, matchLen)));
             }
             
  -          args.append(Value(completeMatchStart));
  -          args.append(Value(source));
  +          args.append(Number(completeMatchStart));
  +          args.append(String(source));
   
             replacementString = replacementFunction->call(exec, exec->dynamicInterpreter()->globalObject(), 
                                                           args).toString(exec);
  @@ -355,9 +355,9 @@
       if (replacementFunction) {
           List args;
         
  -        args.append(Value(source.substr(matchPos, matchLen)));
  -        args.append(Value(matchPos));
  -        args.append(Value(source));
  +        args.append(String(source.substr(matchPos, matchLen)));
  +        args.append(Number(matchPos));
  +        args.append(String(source));
         
           replacementString = replacementFunction->call(exec, exec->dynamicInterpreter()->globalObject(), 
                                                         args).toString(exec);
  
  
  



More information about the webkit-changes mailing list