specification.js 928 B

1234567891011121314151617181920212223242526272829303132
  1. /*!
  2. {
  3. "name": "ES5",
  4. "property": "es5",
  5. "caniuse": "es5",
  6. "notes": [{
  7. "name": "ECMAScript 5.1 Language Specification",
  8. "href": "https://www.ecma-international.org/ecma-262/5.1/"
  9. }],
  10. "polyfills": ["es5shim", "es5sham"],
  11. "authors": ["Ron Waldon (@jokeyrhyme)"],
  12. "tags": ["es5"]
  13. }
  14. !*/
  15. /* DOC
  16. Check if browser implements everything as specified in ECMAScript 5.
  17. */
  18. 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) {
  19. Modernizr.addTest('es5', function() {
  20. return !!(
  21. Modernizr.es5array &&
  22. Modernizr.es5date &&
  23. Modernizr.es5function &&
  24. Modernizr.es5object &&
  25. Modernizr.strictmode &&
  26. Modernizr.es5string &&
  27. Modernizr.json &&
  28. Modernizr.es5syntax &&
  29. Modernizr.es5undefined
  30. );
  31. });
  32. });