diff --git a/src/node.cc b/src/node.cc index 79f1405e0e..3783b38f24 100644 --- a/src/node.cc +++ b/src/node.cc @@ -859,6 +859,8 @@ Handle EvalCX(const Arguments& args) { Local code = args[0]->ToString(); Local sandbox = args.Length() > 1 ? args[1]->ToObject() : Object::New(); + Local filename = args.Length() > 2 ? args[2]->ToString() + : String::New("evalcx"); // Create the new context Persistent context = Context::New(); @@ -878,7 +880,7 @@ Handle EvalCX(const Arguments& args) { // Catch errors TryCatch try_catch; - Local