polyfill.js.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Source: polyfill.js</title>
  6. <script src="scripts/prettify/prettify.js"> </script>
  7. <script src="scripts/prettify/lang-css.js"> </script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
  13. </head>
  14. <body>
  15. <div id="main">
  16. <h1 class="page-title">Source: polyfill.js</h1>
  17. <section>
  18. <article>
  19. <pre class="prettyprint source linenums"><code>// Licensed Materials - Property of IBM
  20. //
  21. // IBM Watson Analytics
  22. //
  23. // (C) Copyright IBM Corp. 2016
  24. //
  25. // US Government Users Restricted Rights - Use, duplication or
  26. // disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  27. // Native objects available since the beginning; may contain polyfills for multiple levels of ES compliance.
  28. // No need to expose these on "polyfill" since they are always available
  29. require( "./polyfill/Array" );
  30. require( "./polyfill/Date" );
  31. require( "./polyfill/Function" );
  32. require( "./polyfill/Math" );
  33. require( "./polyfill/Number" );
  34. require( "./polyfill/Object" );
  35. require( "./polyfill/String" );
  36. /**
  37. * The polyfill module contains polyfills for objects in the ECMAScript specification.
  38. * @module barejs/polyfill
  39. */
  40. Object.assign( exports,
  41. // Note: although we define this module to be barejs/polyfill, its properties are actually added to barejs, so tell jsdoc about that.
  42. /** @lends module:barejs */
  43. {
  44. /**
  45. * NMap - Version of Map that prefers the native implementation over the polyfill, even if it doesn't have
  46. * iterator support (like in Internet Explorer 11). If Iterator support is required, use
  47. * {@link module:barejs.Map Map} instead.
  48. * @member {function}
  49. */
  50. NMap: require( "./NMap" ),
  51. /**
  52. * NSet - Version of Set that prefers the native implementation over the polyfill, even if it doesn't have
  53. * iterator support (like in Internet Explorer 11). If Iterator support is required, use
  54. * {@link module:barejs.Set Set} instead.
  55. * @member {function}
  56. */
  57. NSet: require( "./NSet" ),
  58. // New built-in objects that will be polyfilled (but not globally)
  59. /**
  60. * This is either the native {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl Intl}
  61. * or the {@link module:barejs/polyfill.Intl fallback} provided by BareJS. Note that BareJS's fallback just provides a similar API,
  62. * it has not actual localization features. It's main purpose is to gracefully fallback to very limited formatting on
  63. * environments that don't support Intl. For proper support, load a full Intl polyfill.
  64. * @member {function}
  65. */
  66. Intl: require( "./Intl" ),
  67. /**
  68. * This is either the native {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map Map}
  69. * or the {@link module:barejs/polyfill.Map polyfill} provided by BareJS. This implementation is ensured to have iterator support (using the polyfill), if no
  70. * iterator support is required it is better to use {@link module:barejs.NMap NMap} instead.
  71. * @member {function}
  72. */
  73. Map: require( "./Map" ),
  74. /**
  75. * This is either the native {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap WeakMap}
  76. * or the {@link module:barejs/polyfill.WeakMap polyfill} provided by BareJS.
  77. * @member {function}
  78. */
  79. WeakMap: require( "./WeakMap" ),
  80. /**
  81. * This is either the native {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set Set}
  82. * or the {@link module:barejs/polyfill.Set polyfill} provided by BareJS. This implementation is ensured to have iterator support (using the polyfill), if no
  83. * iterator support is required it is better to use {@link module:barejs.NSet NSet} instead.
  84. * @member {function}
  85. */
  86. Set: require( "./Set" ),
  87. /**
  88. * This is either the native {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet WeakSet}
  89. * or the {@link module:barejs/polyfill.WeakSet polyfill} provided by BareJS.
  90. * @member {function}
  91. */
  92. WeakSet: require( "./WeakSet" ),
  93. /**
  94. * This is either the native {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol Symbol}
  95. * or the {@link module:barejs/polyfill.Symbol polyfill} provided by BareJS.
  96. * @member {function}
  97. */
  98. Symbol: require( "./Symbol" ),
  99. /**
  100. * This is either the native {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise Promise}
  101. * or the {@link module:barejs/polyfill.Promise polyfill} provided by BareJS.
  102. * @member {function}
  103. */
  104. Promise: require( "./Promise" )
  105. } );
  106. </code></pre>
  107. </article>
  108. </section>
  109. </div>
  110. <nav>
  111. <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-barejs.html">barejs</a></li><li><a href="module-barejs_polyfill.html">barejs/polyfill</a></li><li><a href="module-barejs_polyfill_Intl.html">barejs/polyfill/Intl</a></li></ul><h3>Classes</h3><ul><li><a href="module-barejs.decl.html">decl</a></li><li><a href="module-barejs.decl-Enum.html">Enum</a></li><li><a href="module-barejs.decl-Interface.html">Interface</a></li><li><a href="module-barejs.decl-SpecialType.html">SpecialType</a></li><li><a href="module-barejs.Destroyable.html">Destroyable</a></li><li><a href="module-barejs.EventArgs.html">EventArgs</a></li><li><a href="module-barejs.Evented.html">Evented</a></li><li><a href="module-barejs.Evented-EventedHandle.html">EventedHandle</a></li><li><a href="module-barejs.Exception.html">Exception</a></li><li><a href="module-barejs_polyfill.Array.html">Array</a></li><li><a href="module-barejs_polyfill.Date.html">Date</a></li><li><a href="module-barejs_polyfill.EntryStore.html">EntryStore</a></li><li><a href="module-barejs_polyfill.EntryStore.Iterator.html">Iterator</a></li><li><a href="module-barejs_polyfill.Function.html">Function</a></li><li><a href="module-barejs_polyfill.Map.html">Map</a></li><li><a href="module-barejs_polyfill.Map-MapIterator.html">MapIterator</a></li><li><a href="module-barejs_polyfill.Math.html">Math</a></li><li><a href="module-barejs_polyfill.Number.html">Number</a></li><li><a href="module-barejs_polyfill.Object.html">Object</a></li><li><a href="module-barejs_polyfill.Promise.html">Promise</a></li><li><a href="module-barejs_polyfill.Set.html">Set</a></li><li><a href="module-barejs_polyfill.Set-SetIterator.html">SetIterator</a></li><li><a href="module-barejs_polyfill.String.html">String</a></li><li><a href="module-barejs_polyfill.Symbol.html">Symbol</a></li><li><a href="module-barejs_polyfill.WeakMap.html">WeakMap</a></li><li><a href="module-barejs_polyfill.WeakSet.html">WeakSet</a></li><li><a href="module-barejs_polyfill_Intl.DateTimeFormat.html">DateTimeFormat</a></li><li><a href="module-barejs_polyfill_Intl.DateTimeFormat-DateTimeFormatOptions.html">DateTimeFormatOptions</a></li><li><a href="module-barejs_polyfill_Intl.NumberFormat.html">NumberFormat</a></li><li><a href="module-barejs_polyfill_Intl.NumberFormat-NumberFormatOptions.html">NumberFormatOptions</a></li><li><a href="module-barejs_polyfill_Intl-Format.html">Format</a></li></ul>
  112. </nav>
  113. <br class="clear">
  114. <footer>
  115. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Oct 03 2018 15:59:33 GMT+0200 (W. Europe Daylight Time)
  116. </footer>
  117. <script> prettyPrint(); </script>
  118. <script src="scripts/linenumber.js"> </script>
  119. </body>
  120. </html>