mirror of
https://github.com/electron/electron.git
synced 2026-02-15 17:45:33 -05:00
Fix compilation error with node 0.10.
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
v8::Integer::NewFromUnsigned(isolate, data)
|
||||
#define MATE_EXTERNAL_NEW(isolate, data) v8::External::New(isolate, data)
|
||||
#define MATE_BOOLEAN_NEW(isolate, data) v8::Boolean::New(isolate, data)
|
||||
#define MATE_OBJECT_NEW(isolate) v8::Object::New(isolate)
|
||||
|
||||
#define MATE_SET_INTERNAL_FIELD_POINTER(object, index, value) \
|
||||
object->SetAlignedPointerInInternalField(index, value)
|
||||
@@ -95,6 +96,7 @@
|
||||
v8::Integer::NewFromUnsigned(data)
|
||||
#define MATE_EXTERNAL_NEW(isolate, data) v8::External::New(data)
|
||||
#define MATE_BOOLEAN_NEW(isolate, data) v8::Boolean::New(data)
|
||||
#define MATE_OBJECT_NEW(isolate) v8::Object::New()
|
||||
|
||||
#define MATE_SET_INTERNAL_FIELD_POINTER(object, index, value) \
|
||||
object->SetPointerInInternalField(index, value)
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace mate {
|
||||
|
||||
Dictionary::Dictionary(v8::Isolate* isolate)
|
||||
: isolate_(isolate),
|
||||
object_(v8::Object::New(isolate)) {
|
||||
object_(MATE_OBJECT_NEW(isolate)) {
|
||||
}
|
||||
|
||||
Dictionary::Dictionary(v8::Isolate* isolate,
|
||||
@@ -22,7 +22,7 @@ Dictionary::~Dictionary() {
|
||||
|
||||
Dictionary Dictionary::CreateEmpty(v8::Isolate* isolate) {
|
||||
Dictionary dictionary(isolate);
|
||||
dictionary.object_ = v8::Object::New(isolate);
|
||||
dictionary.object_ = MATE_OBJECT_NEW(isolate);
|
||||
return dictionary;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ ObjectTemplateBuilder Wrappable::GetObjectTemplateBuilder(
|
||||
// static
|
||||
MATE_WEAK_CALLBACK(Wrappable::WeakCallback, v8::Object, Wrappable) {
|
||||
MATE_WEAK_CALLBACK_INIT(Wrappable);
|
||||
self->wrapper_.Reset();
|
||||
MATE_PERSISTENT_RESET(self->wrapper_);
|
||||
delete self;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user