Skip to content

Commit 626ccb1

Browse files
committed
change error to say newFloat
1 parent db36a4b commit 626ccb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/java.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ void Java::destroyJVM(JavaVM** jvm, JNIEnv** env) {
646646
JavaScope javaScope(env);
647647

648648
if(args.Length() != 1) {
649-
return ThrowException(v8::Exception::TypeError(v8::String::New("newShort only takes 1 argument")));
649+
return ThrowException(v8::Exception::TypeError(v8::String::New("newFloat only takes 1 argument")));
650650
} else if(!args[0]->IsNumber()) {
651651
return ThrowException(v8::Exception::TypeError(v8::String::New("Argument 1 must be a number")));
652652
}

0 commit comments

Comments
 (0)