From 1345103c3abaf915d0bd62307635c4e95124017a Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 2 Jan 2011 01:13:27 -0800 Subject: [PATCH] Fix typos --- src/node_script.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node_script.cc b/src/node_script.cc index 3057a3429f..609b616622 100644 --- a/src/node_script.cc +++ b/src/node_script.cc @@ -342,11 +342,11 @@ Handle WrappedScript::EvalMachine(const Arguments& args) { WrappedScript *n_script = ObjectWrap::Unwrap(args.Holder()); if (!n_script) { return ThrowException(Exception::Error( - String::New("Must be called as a method of WrappedScript."))); + String::New("Must be called as a method of Script."))); } else if (n_script->script_.IsEmpty()) { return ThrowException(Exception::Error( String::New("'this' must be a result of previous " - "new WrappedScript(code) call."))); + "new Script(code) call."))); } script = n_script->script_; @@ -360,7 +360,7 @@ Handle WrappedScript::EvalMachine(const Arguments& args) { WrappedScript *n_script = ObjectWrap::Unwrap(args.Holder()); if (!n_script) { return ThrowException(Exception::Error( - String::New("Must be called as a method of WrappedScript."))); + String::New("Must be called as a method of Script."))); } n_script->script_ = Persistent