Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index ff44fdf28730b73b329e91e032ca1c9cdb5da75e..a2924dcadebf11e8fe29e38ff249fc951f83be9c 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -2653,7 +2653,7 @@ bool V8EXPORT SetResourceConstraints(ResourceConstraints* constraints); |
typedef void (*FatalErrorCallback)(const char* location, const char* message); |
-typedef void (*MessageCallback)(Handle<Message> message, Handle<Value> data); |
+typedef void (*MessageCallback)(Handle<Message> message, Handle<Value> error); |
/** |
@@ -3085,8 +3085,7 @@ class V8EXPORT V8 { |
* The same message listener can be added more than once and in that |
* case it will be called more than once for each message. |
*/ |
- static bool AddMessageListener(MessageCallback that, |
- Handle<Value> data = Handle<Value>()); |
+ static bool AddMessageListener(MessageCallback that); |
/** |
* Remove all message listeners from the specified callback function. |