Skip to content

Commit

Permalink
Code: Rescue from Segmentation Fault. (sass#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 committed Jul 12, 2014
1 parent 3ff1d6f commit adb6baf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ void FillStatsObj(Handle<Object> stats, sass_file_context* ctx) {
Handle<Value> source_map;

FillStatsObj<sass_file_context*>(stats, ctx);

if (ctx->error_status) {
return;
}
if (ctx->options.source_comments == SASS_SOURCE_COMMENTS_MAP) {
source_map = NanNew<String>(ctx->source_map_string);
} else {
Expand Down

0 comments on commit adb6baf

Please sign in to comment.