public static Exception NotFoundError(Scriptable @object, string property) { // XXX: use object to improve the error message string msg = GetMessage1("msg.is.not.defined", property); throw ConstructError("ReferenceError", msg); }