Revision: 22377
Author:   mstarzin...@chromium.org
Date:     Mon Jul 14 13:57:10 2014 UTC
Log:      Fix error message about read-only symbol properties.

R=rossb...@chromium.org
BUG=v8:3441
LOG=Y

Review URL: https://codereview.chromium.org/390783003
http://code.google.com/p/v8/source/detail?r=22377

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

=======================================
--- /branches/bleeding_edge/src/messages.js     Mon Jul 14 07:55:45 2014 UTC
+++ /branches/bleeding_edge/src/messages.js     Mon Jul 14 13:57:10 2014 UTC
@@ -211,6 +211,7 @@
     }
     return str;
   }
+  if (IS_SYMBOL(obj)) return %_CallFunction(obj, SymbolToString);
if (IS_OBJECT(obj) && %GetDataProperty(obj, "toString") === ObjectToString) {
     var constructor = %GetDataProperty(obj, "constructor");
     if (typeof constructor == "function") {

--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to