From 90fdb1a045bf68143fda18017ad1f8115eaadde8 Mon Sep 17 00:00:00 2001 From: sumedhghaisas Date: Tue, 1 Mar 2016 16:51:02 +0530 Subject: [PATCH] Minor changes in box implementation --- src/util/box.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/box.hpp b/src/util/box.hpp index b3909bf..a7ae715 100644 --- a/src/util/box.hpp +++ b/src/util/box.hpp @@ -8,10 +8,10 @@ struct Box v8::Local ToLocal() { v8::Local array = Nan::New(); - Nan::Set(array, 0, v8::Integer::New(x1)); - array->Set(1,v8::Integer::New(x2)); - array->Set(2,v8::Integer::New(y1)); - array->Set(3,v8::Integer::New(y2)); + Nan::Set(array, 0, Nan::New(x1)); + Nan::Set(array, 1, Nan::New(x2)); + Nan::Set(array, 2, Nan::New(y1)); + Nan::Set(array, 3, Nan::New(y2)); return array; } Box() {