| Index: src/messages.js
|
| diff --git a/src/messages.js b/src/messages.js
|
| index 30f6682adab6c5c2cd91a96cbed1a07f9aca8604..3d6c8ce2d88ba983e42d37c15c9e0ffcfa125e73 100644
|
| --- a/src/messages.js
|
| +++ b/src/messages.js
|
| @@ -190,6 +190,7 @@ function NoSideEffectToString(obj) {
|
| 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") {
|
|
|