Some more APIs fixes.

This commit is contained in:
Cheng Zhao 2014-06-28 22:32:35 +08:00
parent 8e056672bc
commit e6db1875d0
4 changed files with 26 additions and 14 deletions

View file

@ -9,7 +9,7 @@ namespace mate {
namespace internal {
CallbackHolderBase::CallbackHolderBase(v8::Isolate* isolate)
: MATE_PERSISTENT_INIT(isolate, v8_ref_, v8::External::New(this)) {
: MATE_PERSISTENT_INIT(isolate, v8_ref_, MATE_EXTERNAL_NEW(isolate, this)) {
MATE_PERSISTENT_SET_WEAK(v8_ref_, this, &CallbackHolderBase::WeakCallback);
}