Author: [email protected]
Date: Mon Mar  2 01:22:56 2009
New Revision: 1394

Modified:
    trunk/src/api.cc
    trunk/src/log.cc
    trunk/src/regexp-delay.js
    trunk/test/mjsunit/regexp-static.js

Log:
Push bleeding_e...@1391 and bleeding_e...@1392 to trunk.
Review URL: http://codereview.chromium.org/27325

Modified: trunk/src/api.cc
==============================================================================
--- trunk/src/api.cc    (original)
+++ trunk/src/api.cc    Mon Mar  2 01:22:56 2009
@@ -2185,7 +2185,7 @@


  const char* v8::V8::GetVersion() {
-  return "1.0.3";
+  return "1.0.3.1";
  }



Modified: trunk/src/log.cc
==============================================================================
--- trunk/src/log.cc    (original)
+++ trunk/src/log.cc    Mon Mar  2 01:22:56 2009
@@ -386,7 +386,9 @@
  // Write the log message to the log file currently opened.
  void LogMessageBuilder::WriteToLogFile() {
    ASSERT(pos_ <= Logger::kMessageBufferSize);
-  fwrite(Logger::message_buffer_, 1, pos_, Logger::logfile_);
+  size_t rv = fwrite(Logger::message_buffer_, 1, pos_, Logger::logfile_);
+  ASSERT(rv == static_cast<size_t>(pos_));
+  USE(rv);
  }
  #endif


Modified: trunk/src/regexp-delay.js
==============================================================================
--- trunk/src/regexp-delay.js   (original)
+++ trunk/src/regexp-delay.js   Mon Mar  2 01:22:56 2009
@@ -318,7 +318,8 @@
      return IS_UNDEFINED(regExpInput) ? "" : regExpInput;
    }
    function RegExpSetInput(string) {
-    lastMatchInfo[lastMatchInfo[REGEXP_NUMBER_OF_CAPTURES] + 2] = string;
+    lastMatchInfo[lastMatchInfo[REGEXP_NUMBER_OF_CAPTURES] + 2] =
+        ToString(string);
    };

    %DefineAccessor($RegExp, 'input', GETTER, RegExpGetInput, DONT_DELETE);

Modified: trunk/test/mjsunit/regexp-static.js
==============================================================================
--- trunk/test/mjsunit/regexp-static.js (original)
+++ trunk/test/mjsunit/regexp-static.js Mon Mar  2 01:22:56 2009
@@ -132,3 +132,8 @@
  re = /(.)/g;
  function f() { return RegExp.$1; };
  assertEquals('abcd', 'abcd'.replace(re, f));
+
+RegExp.multiline = "foo";
+assertTrue(typeof RegExp.multiline == typeof Boolean(), "RegExp.multiline  
coerces values to booleans");
+RegExp.input = Number();
+assertTrue(typeof RegExp.input == typeof String(), "RegExp.input coerces  
values to booleans");

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to