allow more arguments, but require at least one

This commit is contained in:
Konstantin Käfer
2015-02-06 10:46:49 +01:00
parent 66ca191ab2
commit 339ebca759

View File

@@ -68,7 +68,7 @@ const std::string StringifyStyle(v8::Handle<v8::Value> styleHandle) {
NAN_METHOD(NodeMap::Load) {
NanScope();
if (args.Length() != 1) {
if (args.Length() < 1) {
return NanThrowError("Requires a map style as first argument");
}