Revision: 12940
Author:   [email protected]
Date:     Tue Nov 13 01:01:43 2012
Log:      Fix details in message formatting.

BUG=

Review URL: https://chromiumcodereview.appspot.com/11360220
http://code.google.com/p/v8/source/detail?r=12940

Modified:
 /branches/bleeding_edge/src/isolate.cc
 /branches/bleeding_edge/src/messages.js

=======================================
--- /branches/bleeding_edge/src/isolate.cc      Mon Nov 12 09:32:30 2012
+++ /branches/bleeding_edge/src/isolate.cc      Tue Nov 13 01:01:43 2012
@@ -1235,7 +1235,7 @@
       // exception object to be set later must not be turned into a string.
       if (exception_arg->IsJSObject() && !IsErrorObject(exception_arg)) {
         bool failed = false;
-        exception_arg = Execution::ToString(exception_arg, &failed);
+        exception_arg = Execution::ToDetailString(exception_arg, &failed);
         if (failed) {
           exception_arg = factory()->LookupAsciiSymbol("exception");
         }
=======================================
--- /branches/bleeding_edge/src/messages.js     Mon Nov 12 06:54:29 2012
+++ /branches/bleeding_edge/src/messages.js     Tue Nov 13 01:01:43 2012
@@ -190,6 +190,7 @@
   if (IS_BOOLEAN(obj)) return x ? 'true' : 'false';
   if (IS_UNDEFINED(obj)) return 'undefined';
   if (IS_NULL(obj)) return 'null';
+  if (IS_FUNCTION(obj)) return  %_CallFunction(obj, FunctionToString);
if (IS_OBJECT(obj) && %GetDataProperty(obj, "toString") === ObjectToString) {
     var constructor = obj.constructor;
     if (typeof constructor == "function") {

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

Reply via email to