Permalink
Browse files

webview working on windows

  • Loading branch information...
1 parent 8a113a0 commit 51dab4f58aaf97ec7654f17203db48d8ba0c659d @joeferner committed Apr 20, 2012
@@ -3,6 +3,9 @@
#include "wxNode_wxWebView.h"
#include "wxNode_wxEvtHandler.h"
#include "wxNode_wxControl.h"
+#include "wxNode_wxWindow.h"
+#include "wxNode_wxPoint.h"
+#include "wxNode_wxSize.h"
#include "wxNode_wxWebViewHandler.h"
#include "wxNode_wxInputStream.h"
#include "wxNode_wxVector.h"
@@ -31,6 +34,8 @@
/*static*/ void wxNode_wxWebView::AddMethods(v8::Handle<v8::FunctionTemplate> target) {
wxNode_wxControl::AddMethods(target);
+ NODE_SET_PROTOTYPE_METHOD(target, "create", _Create);
+ NODE_SET_METHOD(target, "new", _New);
NODE_SET_PROTOTYPE_METHOD(target, "getCurrentTitle", _GetCurrentTitle);
NODE_SET_PROTOTYPE_METHOD(target, "getCurrentURL", _GetCurrentURL);
NODE_SET_PROTOTYPE_METHOD(target, "getPageSource", _GetPageSource);
@@ -156,6 +161,266 @@
}
+/*static*/ v8::Handle<v8::Value> wxNode_wxWebView::_Create(const v8::Arguments& args) {
+ v8::HandleScope scope;
+ wxNode_wxWebView* self = unwrap<wxNode_wxWebView>(args.This());
+
+
+ /*
+ * id: _43472
+ */
+ if(args.Length() == 7 && (args[0]->IsNull() || (args[0]->IsObject() && wxNode_wxWindow::AssignableFrom(args[0]->ToObject()->GetConstructorName()))) && args[1]->IsNumber() && args[2]->IsString() && (args[3]->IsNull() || (args[3]->IsObject() && wxNode_wxPoint::AssignableFrom(args[3]->ToObject()->GetConstructorName()))) && (args[4]->IsNull() || (args[4]->IsObject() && wxNode_wxSize::AssignableFrom(args[4]->ToObject()->GetConstructorName()))) && args[5]->IsNumber() && args[6]->IsString()) {
+ wxNode_wxWindow* parent = args[0]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxWindow>(args[0]->ToObject()); /* type: _1000 * */
+ int id = (int)args[1]->ToInt32()->Value(); /* type: _8725 */
+ v8::String::AsciiValue url(args[2]->ToString()); /* type: _14975 */
+ wxNode_wxPoint* pos = args[3]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxPoint>(args[3]->ToObject()); /* type: _20518 */
+ wxNode_wxSize* size = args[4]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxSize>(args[4]->ToObject()); /* type: _20628 */
+ long int style = (long int)args[5]->ToInt32()->Value(); /* type: _592 */
+ v8::String::AsciiValue name(args[6]->ToString()); /* type: _14975 */
+
+
+ bool returnVal = self->Create(parent, id, *url, *pos, *size, style, *name);
+
+ return scope.Close(v8::Boolean::New(returnVal));
+ }
+
+ /*
+ * id: _43472
+ */
+ if(args.Length() == 6 && (args[0]->IsNull() || (args[0]->IsObject() && wxNode_wxWindow::AssignableFrom(args[0]->ToObject()->GetConstructorName()))) && args[1]->IsNumber() && args[2]->IsString() && (args[3]->IsNull() || (args[3]->IsObject() && wxNode_wxPoint::AssignableFrom(args[3]->ToObject()->GetConstructorName()))) && (args[4]->IsNull() || (args[4]->IsObject() && wxNode_wxSize::AssignableFrom(args[4]->ToObject()->GetConstructorName()))) && args[5]->IsNumber()) {
+ wxNode_wxWindow* parent = args[0]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxWindow>(args[0]->ToObject()); /* type: _1000 * */
+ int id = (int)args[1]->ToInt32()->Value(); /* type: _8725 */
+ v8::String::AsciiValue url(args[2]->ToString()); /* type: _14975 */
+ wxNode_wxPoint* pos = args[3]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxPoint>(args[3]->ToObject()); /* type: _20518 */
+ wxNode_wxSize* size = args[4]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxSize>(args[4]->ToObject()); /* type: _20628 */
+ long int style = (long int)args[5]->ToInt32()->Value(); /* type: _592 */
+
+
+ bool returnVal = self->Create(parent, id, *url, *pos, *size, style);
+
+ return scope.Close(v8::Boolean::New(returnVal));
+ }
+
+ /*
+ * id: _43472
+ */
+ if(args.Length() == 5 && (args[0]->IsNull() || (args[0]->IsObject() && wxNode_wxWindow::AssignableFrom(args[0]->ToObject()->GetConstructorName()))) && args[1]->IsNumber() && args[2]->IsString() && (args[3]->IsNull() || (args[3]->IsObject() && wxNode_wxPoint::AssignableFrom(args[3]->ToObject()->GetConstructorName()))) && (args[4]->IsNull() || (args[4]->IsObject() && wxNode_wxSize::AssignableFrom(args[4]->ToObject()->GetConstructorName())))) {
+ wxNode_wxWindow* parent = args[0]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxWindow>(args[0]->ToObject()); /* type: _1000 * */
+ int id = (int)args[1]->ToInt32()->Value(); /* type: _8725 */
+ v8::String::AsciiValue url(args[2]->ToString()); /* type: _14975 */
+ wxNode_wxPoint* pos = args[3]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxPoint>(args[3]->ToObject()); /* type: _20518 */
+ wxNode_wxSize* size = args[4]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxSize>(args[4]->ToObject()); /* type: _20628 */
+
+
+ bool returnVal = self->Create(parent, id, *url, *pos, *size);
+
+ return scope.Close(v8::Boolean::New(returnVal));
+ }
+
+ /*
+ * id: _43472
+ */
+ if(args.Length() == 4 && (args[0]->IsNull() || (args[0]->IsObject() && wxNode_wxWindow::AssignableFrom(args[0]->ToObject()->GetConstructorName()))) && args[1]->IsNumber() && args[2]->IsString() && (args[3]->IsNull() || (args[3]->IsObject() && wxNode_wxPoint::AssignableFrom(args[3]->ToObject()->GetConstructorName())))) {
+ wxNode_wxWindow* parent = args[0]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxWindow>(args[0]->ToObject()); /* type: _1000 * */
+ int id = (int)args[1]->ToInt32()->Value(); /* type: _8725 */
+ v8::String::AsciiValue url(args[2]->ToString()); /* type: _14975 */
+ wxNode_wxPoint* pos = args[3]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxPoint>(args[3]->ToObject()); /* type: _20518 */
+
+
+ bool returnVal = self->Create(parent, id, *url, *pos);
+
+ return scope.Close(v8::Boolean::New(returnVal));
+ }
+
+ /*
+ * id: _43472
+ */
+ if(args.Length() == 3 && (args[0]->IsNull() || (args[0]->IsObject() && wxNode_wxWindow::AssignableFrom(args[0]->ToObject()->GetConstructorName()))) && args[1]->IsNumber() && args[2]->IsString()) {
+ wxNode_wxWindow* parent = args[0]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxWindow>(args[0]->ToObject()); /* type: _1000 * */
+ int id = (int)args[1]->ToInt32()->Value(); /* type: _8725 */
+ v8::String::AsciiValue url(args[2]->ToString()); /* type: _14975 */
+
+
+ bool returnVal = self->Create(parent, id, *url);
+
+ return scope.Close(v8::Boolean::New(returnVal));
+ }
+
+ /*
+ * id: _43472
+ */
+ if(args.Length() == 2 && (args[0]->IsNull() || (args[0]->IsObject() && wxNode_wxWindow::AssignableFrom(args[0]->ToObject()->GetConstructorName()))) && args[1]->IsNumber()) {
+ wxNode_wxWindow* parent = args[0]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxWindow>(args[0]->ToObject()); /* type: _1000 * */
+ int id = (int)args[1]->ToInt32()->Value(); /* type: _8725 */
+
+
+ bool returnVal = self->Create(parent, id);
+
+ return scope.Close(v8::Boolean::New(returnVal));
+ }
+
+
+ std::ostringstream errStr;
+ errStr << "Could not find matching method for arguments (method name: wxWebView::Create).\n";
+ errStr << " arg count: " << args.Length() << "\n";
+ for(int i = 0; i < args.Length(); i++) {
+ v8::String::AsciiValue argStr(args[i]);
+ errStr << " arg[" << i << "]: " << *argStr << "\n";
+ }
+ return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
+}
+
+/*static*/ v8::Handle<v8::Value> wxNode_wxWebView::_New(const v8::Arguments& args) {
+ v8::HandleScope scope;
+ wxNode_wxWebView* self = unwrap<wxNode_wxWebView>(args.This());
+
+
+ /*
+ * id: _43473
+ */
+ if(args.Length() == 1 && args[0]->IsNumber()) {
+ wxWebViewBackend backend = static_cast<wxWebViewBackend>(args[0]->ToInt32()->Value()); /* type: _683 */
+
+
+ wxWebView* returnVal = wxWebView::New(backend);
+
+ return scope.Close(wxNode_wxWebView::New(returnVal));
+ }
+
+ /*
+ * id: _43473
+ */
+ if(args.Length() == 0) {
+
+
+ wxWebView* returnVal = wxWebView::New();
+
+ return scope.Close(wxNode_wxWebView::New(returnVal));
+ }
+
+ /*
+ * id: _43474
+ */
+ if(args.Length() == 8 && (args[0]->IsNull() || (args[0]->IsObject() && wxNode_wxWindow::AssignableFrom(args[0]->ToObject()->GetConstructorName()))) && args[1]->IsNumber() && args[2]->IsString() && (args[3]->IsNull() || (args[3]->IsObject() && wxNode_wxPoint::AssignableFrom(args[3]->ToObject()->GetConstructorName()))) && (args[4]->IsNull() || (args[4]->IsObject() && wxNode_wxSize::AssignableFrom(args[4]->ToObject()->GetConstructorName()))) && args[5]->IsNumber() && args[6]->IsNumber() && args[7]->IsString()) {
+ wxNode_wxWindow* parent = args[0]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxWindow>(args[0]->ToObject()); /* type: _1000 * */
+ int id = (int)args[1]->ToInt32()->Value(); /* type: _8725 */
+ v8::String::AsciiValue url(args[2]->ToString()); /* type: _14975 */
+ wxNode_wxPoint* pos = args[3]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxPoint>(args[3]->ToObject()); /* type: _20518 */
+ wxNode_wxSize* size = args[4]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxSize>(args[4]->ToObject()); /* type: _20628 */
+ wxWebViewBackend backend = static_cast<wxWebViewBackend>(args[5]->ToInt32()->Value()); /* type: _683 */
+ long int style = (long int)args[6]->ToInt32()->Value(); /* type: _592 */
+ v8::String::AsciiValue name(args[7]->ToString()); /* type: _14975 */
+
+
+ wxWebView* returnVal = wxWebView::New(parent, id, *url, *pos, *size, backend, style, *name);
+
+ return scope.Close(wxNode_wxWebView::New(returnVal));
+ }
+
+ /*
+ * id: _43474
+ */
+ if(args.Length() == 7 && (args[0]->IsNull() || (args[0]->IsObject() && wxNode_wxWindow::AssignableFrom(args[0]->ToObject()->GetConstructorName()))) && args[1]->IsNumber() && args[2]->IsString() && (args[3]->IsNull() || (args[3]->IsObject() && wxNode_wxPoint::AssignableFrom(args[3]->ToObject()->GetConstructorName()))) && (args[4]->IsNull() || (args[4]->IsObject() && wxNode_wxSize::AssignableFrom(args[4]->ToObject()->GetConstructorName()))) && args[5]->IsNumber() && args[6]->IsNumber()) {
+ wxNode_wxWindow* parent = args[0]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxWindow>(args[0]->ToObject()); /* type: _1000 * */
+ int id = (int)args[1]->ToInt32()->Value(); /* type: _8725 */
+ v8::String::AsciiValue url(args[2]->ToString()); /* type: _14975 */
+ wxNode_wxPoint* pos = args[3]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxPoint>(args[3]->ToObject()); /* type: _20518 */
+ wxNode_wxSize* size = args[4]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxSize>(args[4]->ToObject()); /* type: _20628 */
+ wxWebViewBackend backend = static_cast<wxWebViewBackend>(args[5]->ToInt32()->Value()); /* type: _683 */
+ long int style = (long int)args[6]->ToInt32()->Value(); /* type: _592 */
+
+
+ wxWebView* returnVal = wxWebView::New(parent, id, *url, *pos, *size, backend, style);
+
+ return scope.Close(wxNode_wxWebView::New(returnVal));
+ }
+
+ /*
+ * id: _43474
+ */
+ if(args.Length() == 6 && (args[0]->IsNull() || (args[0]->IsObject() && wxNode_wxWindow::AssignableFrom(args[0]->ToObject()->GetConstructorName()))) && args[1]->IsNumber() && args[2]->IsString() && (args[3]->IsNull() || (args[3]->IsObject() && wxNode_wxPoint::AssignableFrom(args[3]->ToObject()->GetConstructorName()))) && (args[4]->IsNull() || (args[4]->IsObject() && wxNode_wxSize::AssignableFrom(args[4]->ToObject()->GetConstructorName()))) && args[5]->IsNumber()) {
+ wxNode_wxWindow* parent = args[0]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxWindow>(args[0]->ToObject()); /* type: _1000 * */
+ int id = (int)args[1]->ToInt32()->Value(); /* type: _8725 */
+ v8::String::AsciiValue url(args[2]->ToString()); /* type: _14975 */
+ wxNode_wxPoint* pos = args[3]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxPoint>(args[3]->ToObject()); /* type: _20518 */
+ wxNode_wxSize* size = args[4]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxSize>(args[4]->ToObject()); /* type: _20628 */
+ wxWebViewBackend backend = static_cast<wxWebViewBackend>(args[5]->ToInt32()->Value()); /* type: _683 */
+
+
+ wxWebView* returnVal = wxWebView::New(parent, id, *url, *pos, *size, backend);
+
+ return scope.Close(wxNode_wxWebView::New(returnVal));
+ }
+
+ /*
+ * id: _43474
+ */
+ if(args.Length() == 5 && (args[0]->IsNull() || (args[0]->IsObject() && wxNode_wxWindow::AssignableFrom(args[0]->ToObject()->GetConstructorName()))) && args[1]->IsNumber() && args[2]->IsString() && (args[3]->IsNull() || (args[3]->IsObject() && wxNode_wxPoint::AssignableFrom(args[3]->ToObject()->GetConstructorName()))) && (args[4]->IsNull() || (args[4]->IsObject() && wxNode_wxSize::AssignableFrom(args[4]->ToObject()->GetConstructorName())))) {
+ wxNode_wxWindow* parent = args[0]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxWindow>(args[0]->ToObject()); /* type: _1000 * */
+ int id = (int)args[1]->ToInt32()->Value(); /* type: _8725 */
+ v8::String::AsciiValue url(args[2]->ToString()); /* type: _14975 */
+ wxNode_wxPoint* pos = args[3]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxPoint>(args[3]->ToObject()); /* type: _20518 */
+ wxNode_wxSize* size = args[4]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxSize>(args[4]->ToObject()); /* type: _20628 */
+
+
+ wxWebView* returnVal = wxWebView::New(parent, id, *url, *pos, *size);
+
+ return scope.Close(wxNode_wxWebView::New(returnVal));
+ }
+
+ /*
+ * id: _43474
+ */
+ if(args.Length() == 4 && (args[0]->IsNull() || (args[0]->IsObject() && wxNode_wxWindow::AssignableFrom(args[0]->ToObject()->GetConstructorName()))) && args[1]->IsNumber() && args[2]->IsString() && (args[3]->IsNull() || (args[3]->IsObject() && wxNode_wxPoint::AssignableFrom(args[3]->ToObject()->GetConstructorName())))) {
+ wxNode_wxWindow* parent = args[0]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxWindow>(args[0]->ToObject()); /* type: _1000 * */
+ int id = (int)args[1]->ToInt32()->Value(); /* type: _8725 */
+ v8::String::AsciiValue url(args[2]->ToString()); /* type: _14975 */
+ wxNode_wxPoint* pos = args[3]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxPoint>(args[3]->ToObject()); /* type: _20518 */
+
+
+ wxWebView* returnVal = wxWebView::New(parent, id, *url, *pos);
+
+ return scope.Close(wxNode_wxWebView::New(returnVal));
+ }
+
+ /*
+ * id: _43474
+ */
+ if(args.Length() == 3 && (args[0]->IsNull() || (args[0]->IsObject() && wxNode_wxWindow::AssignableFrom(args[0]->ToObject()->GetConstructorName()))) && args[1]->IsNumber() && args[2]->IsString()) {
+ wxNode_wxWindow* parent = args[0]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxWindow>(args[0]->ToObject()); /* type: _1000 * */
+ int id = (int)args[1]->ToInt32()->Value(); /* type: _8725 */
+ v8::String::AsciiValue url(args[2]->ToString()); /* type: _14975 */
+
+
+ wxWebView* returnVal = wxWebView::New(parent, id, *url);
+
+ return scope.Close(wxNode_wxWebView::New(returnVal));
+ }
+
+ /*
+ * id: _43474
+ */
+ if(args.Length() == 2 && (args[0]->IsNull() || (args[0]->IsObject() && wxNode_wxWindow::AssignableFrom(args[0]->ToObject()->GetConstructorName()))) && args[1]->IsNumber()) {
+ wxNode_wxWindow* parent = args[0]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxWindow>(args[0]->ToObject()); /* type: _1000 * */
+ int id = (int)args[1]->ToInt32()->Value(); /* type: _8725 */
+
+
+ wxWebView* returnVal = wxWebView::New(parent, id);
+
+ return scope.Close(wxNode_wxWebView::New(returnVal));
+ }
+
+
+ std::ostringstream errStr;
+ errStr << "Could not find matching method for arguments (method name: wxWebView::New).\n";
+ errStr << " arg count: " << args.Length() << "\n";
+ for(int i = 0; i < args.Length(); i++) {
+ v8::String::AsciiValue argStr(args[i]);
+ errStr << " arg[" << i << "]: " << *argStr << "\n";
+ }
+ return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
+}
+
/*static*/ v8::Handle<v8::Value> wxNode_wxWebView::_GetCurrentTitle(const v8::Arguments& args) {
v8::HandleScope scope;
wxNode_wxWebView* self = unwrap<wxNode_wxWebView>(args.This());
@@ -6,6 +6,9 @@
#include "wxNode_wxEvtHandler.h"
class wxNode_wxEvtHandler;
class wxNode_wxControl;
+class wxNode_wxWindow;
+class wxNode_wxPoint;
+class wxNode_wxSize;
class wxNode_wxWebViewHandler;
class wxNode_wxInputStream;
class wxNode_wxWebViewHistoryItem;
@@ -27,6 +30,8 @@ class wxNode_wxWebView : public wxWebView, public wxNodeObject, public NodeExEvt
private:
static v8::Handle<v8::Value> _init(const v8::Arguments& args);
+ static v8::Handle<v8::Value> _Create(const v8::Arguments& args);
+ static v8::Handle<v8::Value> _New(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetCurrentTitle(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetCurrentURL(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetPageSource(const v8::Arguments& args);
@@ -3,6 +3,7 @@
#include "wxNode_wxWebViewArchiveHandler.h"
#include "wxNode_wxEvtHandler.h"
#include "wxNode_wxWebViewHandler.h"
+#include "wxNode_wxFSFile.h"
/* static */ v8::Persistent<v8::FunctionTemplate> wxNode_wxWebViewArchiveHandler::s_ct;
@@ -18,6 +19,15 @@ wxNode_wxWebViewArchiveHandler::wxNode_wxWebViewArchiveHandler(wxWebViewArchiveH
}
+/*
+ * id: _31333
+ */
+wxNode_wxWebViewArchiveHandler::wxNode_wxWebViewArchiveHandler(const wxString& scheme)
+ : wxWebViewArchiveHandler(scheme)
+{
+
+}
+
@@ -37,6 +47,7 @@ wxNode_wxWebViewArchiveHandler::wxNode_wxWebViewArchiveHandler(wxWebViewArchiveH
/*static*/ void wxNode_wxWebViewArchiveHandler::AddMethods(v8::Handle<v8::FunctionTemplate> target) {
wxNode_wxWebViewHandler::AddMethods(target);
+ NODE_SET_PROTOTYPE_METHOD(target, "getFile", _GetFile);
}
@@ -119,6 +130,19 @@ wxNode_wxWebViewArchiveHandler::wxNode_wxWebViewArchiveHandler(wxWebViewArchiveH
return args.This();
}
+ /*
+ * id: _31333
+ */
+ if(args.Length() == 1 && args[0]->IsString()) {
+ v8::String::AsciiValue scheme(args[0]->ToString()); /* type: _14975 */
+
+
+ wxNode_wxWebViewArchiveHandler *self = new wxNode_wxWebViewArchiveHandler(*scheme);
+ NodeExEvtHandlerImpl* evtHandler = dynamic_cast<NodeExEvtHandlerImpl*>(self);
+ self->wrap(args.This(), self, evtHandler);
+ return args.This();
+ }
+
std::ostringstream errStr;
@@ -132,5 +156,33 @@ wxNode_wxWebViewArchiveHandler::wxNode_wxWebViewArchiveHandler(wxWebViewArchiveH
}
+/*static*/ v8::Handle<v8::Value> wxNode_wxWebViewArchiveHandler::_GetFile(const v8::Arguments& args) {
+ v8::HandleScope scope;
+ wxNode_wxWebViewArchiveHandler* self = unwrap<wxNode_wxWebViewArchiveHandler>(args.This());
+
+
+ /*
+ * id: _31335
+ */
+ if(args.Length() == 1 && args[0]->IsString()) {
+ v8::String::AsciiValue uri(args[0]->ToString()); /* type: _14975 */
+
+
+ wxFSFile* returnVal = self->GetFile(*uri);
+
+ return scope.Close(wxNode_wxFSFile::New(returnVal));
+ }
+
+
+ std::ostringstream errStr;
+ errStr << "Could not find matching method for arguments (method name: wxWebViewArchiveHandler::GetFile).\n";
+ errStr << " arg count: " << args.Length() << "\n";
+ for(int i = 0; i < args.Length(); i++) {
+ v8::String::AsciiValue argStr(args[i]);
+ errStr << " arg[" << i << "]: " << *argStr << "\n";
+ }
+ return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
+}
+
Oops, something went wrong.

0 comments on commit 51dab4f

Please sign in to comment.