function validateRequireContext(oRequireContext) {
		var sErrorMessage,
			rIdentifier = /^[a-zA-Z_$][a-zA-Z0-9_$]*$/;

		if (!oRequireContext || typeof oRequireContext !== "object") {
			sErrorMessage = "core:require in XMLView can't be parsed to a valid object";
		} else {
			Object.keys(oRequireContext).some(function(sKey) {
				if (!rIdentifier.test(sKey)) {
					// '.' is not allowed to use in sKey
					sErrorMessage = "core:require in XMLView contains invalid identifier: '"
						+ sKey + "'";
					return true;
				}

				if (!oRequireContext[sKey] || typeof oRequireContext[sKey] !== "string") {
					// The value should be a non-empty string
					sErrorMessage = "core:require in XMLView contains invalide value '"
						+ oRequireContext[sKey] + "'under key '" + sKey + "'";
					return true;
				}
			});
		}

		return sErrorMessage;
	}
/**
	 * Validate the parsed require context object
	 *
	 * The require context object should be an object. Every key in the object should be a valid
	 * identifier (shouldn't contain '.'). Every value in the object should be a non-empty string.
	 *
	 * @param {object} oRequireContext The parsed require context
	 * @return {string} The error message if the validation fails, otherwise it returns undefined
	 */
Validate the parsed require context object
The require context object should be an object. Every key in the object should be a valid
identifier (shouldn't contain '.'). Every value in the object should be a non-empty string.

@param {object} oRequireContext The parsed require context
@return {string} The error message if the validation fails, otherwise it returns undefined
Validate the parsed require context object The require context object should be an object . Every key in the object should be a valid identifier ( shouldn ' t contain ' . ' ) . Every value in the object should be a non - empty string . @param { object } oRequireContext The parsed require context @return { string } The error message if the validation fails otherwise it returns undefined
function validateRequireContext(oRequireContext) {
		var sErrorMessage,
			rIdentifier = /^[a-zA-Z_$][a-zA-Z0-9_$]*$/;
		if (!oRequireContext || typeof oRequireContext !== "object") {
			sErrorMessage = "core:require in XMLView can't be parsed to a valid object";
		} else {
			Object.keys(oRequireContext).some(function(sKey) {
				if (!rIdentifier.test(sKey)) {
					sErrorMessage = "core:require in XMLView contains invalid identifier: '"
						+ sKey + "'";
					return true;
				}
				if (!oRequireContext[sKey] || typeof oRequireContext[sKey] !== "string") {
					sErrorMessage = "core:require in XMLView contains invalide value '"
						+ oRequireContext[sKey] + "'under key '" + sKey + "'";
					return true;
				}
			});
		}
		return sErrorMessage;
	}
function validateRequireContext ( oRequireContext ) { var sErrorMessage , rIdentifier = / ^[a-zA-Z_$][a-zA-Z0-9_$]*$ / ; if ( ! oRequireContext || typeof oRequireContext !== "object" ) { sErrorMessage = "core:require in XMLView can't be parsed to a valid object" ; } else { Object . keys ( oRequireContext ) . some ( function ( sKey ) { if ( ! rIdentifier . test ( sKey ) ) { sErrorMessage = "core:require in XMLView contains invalid identifier: '" + sKey + "'" ; return true ; } if ( ! oRequireContext [ sKey ] || typeof oRequireContext [ sKey ] !== "string" ) { sErrorMessage = "core:require in XMLView contains invalide value '" + oRequireContext [ sKey ] + "'under key '" + sKey + "'" ; return true ; } } ) ; } return sErrorMessage ; }
Validate the parsed require context object
 The require context object should be an object.
Validate the parsed require context object The require context object should be an object .
// '.' is not allowed to use in sKey // The value should be a non-empty string