Chromium Code Reviews| Index: src/messages.js |
| diff --git a/src/messages.js b/src/messages.js |
| index 2dddffa57ad8cae08d6f445116558dac18e7d4a4..91e24c70157ffb6c2ad87e991e029d9d1dd7f050 100644 |
| --- a/src/messages.js |
| +++ b/src/messages.js |
| @@ -223,7 +223,7 @@ function NoSideEffectToString(obj) { |
| return str; |
| } |
| if (IS_SYMBOL(obj)) return %_CallFunction(obj, SymbolToString); |
| - if (IS_OBJECT(obj) && %GetDataProperty(obj, "toString") === ObjectToString) { |
| + if (IS_OBJECT(obj) && %GetDataProperty(obj, "toString") === DefaultObjectToString) { |
|
Dmitry Lomov (no reviews)
2014/10/21 06:11:53
Line length
caitp (gmail)
2014/10/21 14:54:45
Acknowledged.
|
| var constructor = %GetDataProperty(obj, "constructor"); |
| if (typeof constructor == "function") { |
| var constructorName = constructor.name; |
| @@ -235,6 +235,7 @@ function NoSideEffectToString(obj) { |
| if (CanBeSafelyTreatedAsAnErrorObject(obj)) { |
| return %_CallFunction(obj, ErrorToString); |
| } |
| + |
| return %_CallFunction(obj, ObjectToString); |
| } |