object.js 674 B

12345678910111213141516171819202122
  1. /*!
  2. {
  3. "name": "ES6 Object",
  4. "property": "es6object",
  5. "notes": [{
  6. "name": "unofficial ECMAScript 6 draft specification",
  7. "href": "https://web.archive.org/web/20180825202128/https://tc39.github.io/ecma262/"
  8. }],
  9. "polyfills": ["es6shim"],
  10. "authors": ["Ron Waldon (@jokeyrhyme)"],
  11. "warnings": ["ECMAScript 6 is still a only a draft, so this detect may not match the final specification or implementations."],
  12. "tags": ["es6"]
  13. }
  14. !*/
  15. /* DOC
  16. Check if browser implements ECMAScript 6 Object per specification.
  17. */
  18. define(['Modernizr'], function(Modernizr) {
  19. Modernizr.addTest('es6object', !!(Object.assign &&
  20. Object.is &&
  21. Object.setPrototypeOf));
  22. });