Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jan 2, 2011
1 parent 2e3e95e commit 1345103
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node_script.cc
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,11 @@ Handle<Value> WrappedScript::EvalMachine(const Arguments& args) {
WrappedScript *n_script = ObjectWrap::Unwrap<WrappedScript>(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_;
Expand All @@ -360,7 +360,7 @@ Handle<Value> WrappedScript::EvalMachine(const Arguments& args) {
WrappedScript *n_script = ObjectWrap::Unwrap<WrappedScript>(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<Script>::New(script);
result = args.This();
Expand Down

0 comments on commit 1345103

Please sign in to comment.