Commit adb6baf6 by Adeel

Code: Rescue from Segmentation Fault. (#361)

parent 3ff1d6f9
...@@ -82,6 +82,10 @@ void FillStatsObj(Handle<Object> stats, sass_file_context* ctx) { ...@@ -82,6 +82,10 @@ void FillStatsObj(Handle<Object> stats, sass_file_context* ctx) {
Handle<Value> source_map; Handle<Value> source_map;
FillStatsObj<sass_file_context*>(stats, ctx); FillStatsObj<sass_file_context*>(stats, ctx);
if (ctx->error_status) {
return;
}
if (ctx->options.source_comments == SASS_SOURCE_COMMENTS_MAP) { if (ctx->options.source_comments == SASS_SOURCE_COMMENTS_MAP) {
source_map = NanNew<String>(ctx->source_map_string); source_map = NanNew<String>(ctx->source_map_string);
} else { } else {
......
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