From df8164c1c33b49431087327310bd22be6169aaa9 Mon Sep 17 00:00:00 2001 From: Tim-Smart Date: Wed, 17 Mar 2010 15:33:29 +1300 Subject: [PATCH] node.cc: EvalCX: Third argument as filename --- src/node.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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