Commit 9f3f90d9 by Benjamin Winkler

fix compiling against node-webkit v0.11.0

+ recent atom-shell >= 0.18.0
replaced occurences of v8::Object::Set with 3 arguments with
v8::Object::ForceSet
parent 5b3c5d2c
......@@ -131,8 +131,8 @@ NAN_METHOD(Database::New) {
Database* db = new Database();
db->Wrap(args.This());
args.This()->Set(NanNew("filename"), args[0]->ToString(), ReadOnly);
args.This()->Set(NanNew("mode"), NanNew<Integer>(mode), ReadOnly);
args.This()->ForceSet(NanNew("filename"), args[0]->ToString(), ReadOnly);
args.This()->ForceSet(NanNew("mode"), NanNew<Integer>(mode), ReadOnly);
// Start opening the database.
OpenBaton* baton = new OpenBaton(db, callback, *filename, mode);
......
......@@ -56,14 +56,14 @@ const char* sqlite_authorizer_string(int type);
#define DEFINE_CONSTANT_INTEGER(target, constant, name) \
(target)->Set( \
(target)->ForceSet( \
NanNew(#name), \
NanNew<Integer>(constant), \
static_cast<PropertyAttribute>(ReadOnly | DontDelete) \
);
#define DEFINE_CONSTANT_STRING(target, constant, name) \
(target)->Set( \
(target)->ForceSet( \
NanNew(#name), \
NanNew(constant), \
static_cast<PropertyAttribute>(ReadOnly | DontDelete) \
......
......@@ -102,7 +102,7 @@ NAN_METHOD(Statement::New) {
Database* db = ObjectWrap::Unwrap<Database>(args[0]->ToObject());
Local<String> sql = Local<String>::Cast(args[1]);
args.This()->Set(NanNew("sql"), sql, ReadOnly);
args.This()->ForceSet(NanNew("sql"), sql, ReadOnly);
Statement* stmt = new Statement(db);
stmt->Wrap(args.This());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment