private static void WarnAboutNonJSObject(object nonJSObject)
{
string message = "RHINO USAGE WARNING: Missed Context.javaToJS() conversion:\n" + "Rhino runtime detected object " + nonJSObject + " of class " + nonJSObject.GetType().FullName + " where it expected String, Number, Boolean or Scriptable instance. Please check your code for missing Context.javaToJS() call.";
Context.ReportWarning(message);
// Just to be sure that it would be noticed
System.Console.Error.WriteLine(message);
}