mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-20 16:41:04 +00:00
33 lines
928 B
JavaScript
33 lines
928 B
JavaScript
/*!
|
|
{
|
|
"name": "ES5",
|
|
"property": "es5",
|
|
"caniuse": "es5",
|
|
"notes": [{
|
|
"name": "ECMAScript 5.1 Language Specification",
|
|
"href": "https://www.ecma-international.org/ecma-262/5.1/"
|
|
}],
|
|
"polyfills": ["es5shim", "es5sham"],
|
|
"authors": ["Ron Waldon (@jokeyrhyme)"],
|
|
"tags": ["es5"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Check if browser implements everything as specified in ECMAScript 5.
|
|
*/
|
|
define(['Modernizr', 'test/es5/array', 'test/es5/date', 'test/es5/function', 'test/es5/object', 'test/es5/strictmode', 'test/es5/string', 'test/json', 'test/es5/syntax', 'test/es5/undefined'], function(Modernizr) {
|
|
Modernizr.addTest('es5', function() {
|
|
return !!(
|
|
Modernizr.es5array &&
|
|
Modernizr.es5date &&
|
|
Modernizr.es5function &&
|
|
Modernizr.es5object &&
|
|
Modernizr.strictmode &&
|
|
Modernizr.es5string &&
|
|
Modernizr.json &&
|
|
Modernizr.es5syntax &&
|
|
Modernizr.es5undefined
|
|
);
|
|
});
|
|
});
|