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

@@ -8,7 +8,7 @@ namespace mate {
Dictionary::Dictionary(v8::Isolate* isolate)
: isolate_(isolate),
object_(v8::Object::New()) {
object_(v8::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();
dictionary.object_ = v8::Object::New(isolate);
return dictionary;
}