Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit fb09e6b

Browse files
committed
Merge pull request #630 from mnutt/iojs-1.0.1
iojs support
2 parents 604ccf5 + 0887f83 commit fb09e6b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"meow": "^2.0.0",
5151
"mkdirp": "^0.5.0",
5252
"mocha": "^2.0.1",
53-
"nan": "^1.3.0",
53+
"nan": "^1.5.1",
5454
"npmconf": "^2.1.1",
5555
"object-assign": "^2.0.0",
5656
"replace-ext": "0.0.1",

src/binding.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ void prepare_import_results(Local<Value> returned_value, sass_context_wrapper* c
3030
continue;
3131

3232
Local<Object> object = Local<Object>::Cast(value);
33-
char* path = CreateString(object->Get(String::New("file")));
34-
char* contents = CreateString(object->Get(String::New("contents")));
33+
char* path = CreateString(object->Get(NanNew<String>("file")));
34+
char* contents = CreateString(object->Get(NanNew<String>("contents")));
3535

3636
ctx_w->imports[i] = sass_make_import_entry(path, (!contents || contents[0] == '\0') ? 0 : strdup(contents), 0);
3737
}
3838
}
3939
else if (returned_value->IsObject()) {
4040
ctx_w->imports = sass_make_import_list(1);
4141
Local<Object> object = Local<Object>::Cast(returned_value);
42-
char* path = CreateString(object->Get(String::New("file")));
43-
char* contents = CreateString(object->Get(String::New("contents")));
42+
char* path = CreateString(object->Get(NanNew<String>("file")));
43+
char* contents = CreateString(object->Get(NanNew<String>("contents")));
4444

4545
ctx_w->imports[0] = sass_make_import_entry(path, (!contents || contents[0] == '\0') ? 0 : strdup(contents), 0);
4646
}

0 commit comments

Comments
 (0)