All Downloads are FREE. Search and download functionalities are using the official Maven repository.

polyfills.Symbol.toPrimitive.meta.json Maven / Gradle / Ivy

The newest version!
{"aliases":["es6"],"browsers":{"ie":"< 13","ie_mob":"*","safari":"<9","chrome":"< 50","firefox":"< 40","ios_saf":"*","opera":"< 37","samsung_mob":"<5","android":"*","bb":"10 - *"},"dependencies":["Object.defineProperty","Symbol"],"license":"MIT","spec":"http://www.ecma-international.org/ecma-262/6.0/index.html#sec-symbol.toprimitive","docs":"https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Symbol","detectSource":"'Symbol' in this && 'toPrimitive' in this.Symbol","testSource":"","baseDir":"Symbol/toPrimitive","hasTests":true,"testsSource":"/* eslint-env mocha, browser*/\n/* global proclaim, it */\n\nvar arePropertyDescriptorsSupported = function () {\n\tvar obj = {};\n\ttry {\n\t\tObject.defineProperty(obj, 'x', { enumerable: false, value: obj });\n        /* eslint-disable no-unused-vars, no-restricted-syntax */\n        for (var _ in obj) { return false; }\n        /* eslint-enable no-unused-vars, no-restricted-syntax */\n\t\treturn obj.x === obj;\n\t} catch (e) { // this is IE 8.\n\t\treturn false;\n\t}\n};\nvar supportsDescriptors = Object.defineProperty && arePropertyDescriptorsSupported();\n\nit('has the well known symbol toPrimitive as static properties on Symbol', function() {\n\tproclaim.notEqual(Symbol.toPrimitive, undefined);\n\n\tif (supportsDescriptors) {\n\t\tvar toPrimitive = Symbol.toPrimitive;\n\t\tSymbol.toPrimitive = \"nope\";\n\t\tproclaim.equal(Symbol.toPrimitive, toPrimitive);\n\t}\n});"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy