Commit 55023b8a by deepak1556

Removing deprecated NanCString usage

parent c3698fec
......@@ -23,8 +23,11 @@ char* CreateString(Local<Value> value) {
if(value->IsNull() || !value->IsString()) {
return const_cast<char*>(""); // return empty string.
}
size_t count;
return NanCString(value, &count);
String::Utf8Value string(value);
char *str = (char *) malloc(string.length() + 1);
strcpy(str, *string);
return str;
}
void ExtractOptions(Local<Value> optionsValue, void* cptr, sass_context_wrapper* ctx_w, bool isFile) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment