From 339ebca759e3662e76553a2e7451c9664371986b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Fri, 6 Feb 2015 10:46:49 +0100 Subject: allow more arguments, but require at least one --- src/node_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/node_map.cpp b/src/node_map.cpp index 24672af66a..8cf9ee9b6a 100644 --- a/src/node_map.cpp +++ b/src/node_map.cpp @@ -68,7 +68,7 @@ const std::string StringifyStyle(v8::Handle styleHandle) { NAN_METHOD(NodeMap::Load) { NanScope(); - if (args.Length() != 1) { + if (args.Length() < 1) { return NanThrowError("Requires a map style as first argument"); } -- cgit v1.2.1