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

Commit a11fafd

Browse files
committed
Code: Don't push to vector for Render*Sync.
1 parent a956d18 commit a11fafd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/binding.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,10 @@ struct Sass_Import** sass_importer(const char* file, const char* prev, void* coo
9393

9494
Handle<Value> argv[] = {
9595
NanNew<String>(file),
96-
NanNew<String>(prev),
97-
NanNew<Number>(imports_collection.size() - 1)
96+
NanNew<String>(prev)
9897
};
9998

100-
Local<Object> returned_value = Local<Object>::Cast(NanNew<Value>(ctx_w->importer_callback->Call(3, argv)));
99+
Local<Object> returned_value = Local<Object>::Cast(NanNew<Value>(ctx_w->importer_callback->Call(2, argv)));
101100

102101
prepare_import_results(returned_value->Get(NanNew("objectLiteral")), ctx_w);
103102
}

0 commit comments

Comments
 (0)