Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pedrodelgallego/511158 to your computer and use it in GitHub Desktop.
Save pedrodelgallego/511158 to your computer and use it in GitHub Desktop.
//15.5.4.17 String.prototype.toLocaleLowerCase ( )
// This function works exactly the same as toLowerCase except that its result is intended to
// yield the correct result for the host environment’s current locale, rather
// than a locale independent result.
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.toLocaleUpperCase.length !== 0) {
$ERROR('#2: String.prototype.toLocaleLowerCase.length === 0. Actual: '+String.prototype.toLocaleLowerCase.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.toLocaleLowerCase.length !== 0) {
$ERROR('#2: String.prototype.toLocaleLowerCase.length === 0. Actual: '+String.prototype.toLocaleLowerCase.length );
}
//
//////////////////////////////////////////////////////////////////////////////
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment