Index: src/JsEngine.cpp |
=================================================================== |
--- a/src/JsEngine.cpp |
+++ b/src/JsEngine.cpp |
@@ -1,7 +1,7 @@ |
#include <AdblockPlus.h> |
#include <sstream> |
-#include "ConsoleJsObject.h" |
+#include "GlobalJsObject.h" |
namespace |
{ |
@@ -9,9 +9,8 @@ |
AdblockPlus::ErrorCallback& errorCallback) |
{ |
const v8::HandleScope handleScope; |
- const v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(); |
- global->Set(v8::String::New("console"), |
- AdblockPlus::ConsoleJsObject::Create(errorCallback)); |
+ const v8::Handle<v8::ObjectTemplate> global = |
+ AdblockPlus::GlobalJsObject::Create(errorCallback); |
return v8::Context::New(0, global); |
} |