diff --git a/src/binding.cpp b/src/binding.cpp index 2e7fe9351..2d9805b18 100644 --- a/src/binding.cpp +++ b/src/binding.cpp @@ -30,8 +30,8 @@ void prepare_import_results(Local returned_value, sass_context_wrapper* c continue; Local object = Local::Cast(value); - char* path = CreateString(object->Get(String::New("file"))); - char* contents = CreateString(object->Get(String::New("contents"))); + char* path = CreateString(object->Get(NanNew("file"))); + char* contents = CreateString(object->Get(NanNew("contents"))); ctx_w->imports[i] = sass_make_import_entry(path, (!contents || contents[0] == '\0') ? 0 : strdup(contents), 0); } @@ -39,8 +39,8 @@ void prepare_import_results(Local returned_value, sass_context_wrapper* c else if (returned_value->IsObject()) { ctx_w->imports = sass_make_import_list(1); Local object = Local::Cast(returned_value); - char* path = CreateString(object->Get(String::New("file"))); - char* contents = CreateString(object->Get(String::New("contents"))); + char* path = CreateString(object->Get(NanNew("file"))); + char* contents = CreateString(object->Get(NanNew("contents"))); ctx_w->imports[0] = sass_make_import_entry(path, (!contents || contents[0] == '\0') ? 0 : strdup(contents), 0); }