Browse Source

Polyfill comment updates

v1.0-maintenance
Sami Vaarala 10 years ago
parent
commit
5702351e03
  1. 4
      polyfills/console-minimal.js
  2. 4
      polyfills/object-prototype-definegetter.js
  3. 4
      polyfills/object-prototype-definesetter.js
  4. 2
      polyfills/performance-now.js
  5. 2
      polyfills/regexp-prototype-compile.js

4
polyfills/console-minimal.js

@ -1,3 +1,7 @@
/*
* Minimal console.log() polyfill
*/
if (typeof console === 'undefined') {
Object.defineProperty(this, 'console', {
value: {}, writable: true, enumerable: false, configurable: true

4
polyfills/object-prototype-definegetter.js

@ -1,3 +1,7 @@
/*
* Object.prototype.__defineGetter__ polyfill
*/
if (typeof Object.prototype.__defineGetter__ === 'undefined') {
Object.defineProperty(Object.prototype, '__defineGetter__', {
value: function (n, f) {

4
polyfills/object-prototype-definesetter.js

@ -1,3 +1,7 @@
/*
* Object.prototype.__defineSetter__ polyfill
*/
if (typeof Object.prototype.__defineSetter__ === 'undefined') {
Object.defineProperty(Object.prototype, '__defineSetter__', {
value: function (n, f) {

2
polyfills/performance-now.js

@ -1,5 +1,5 @@
/*
* Performance.now()
* Performance.now() polyfill
*
* http://www.w3.org/TR/hr-time/#sec-high-resolution-time
*

2
polyfills/regexp-prototype-compile.js

@ -1,5 +1,5 @@
/*
* RegExp.prototype.compile(), described in E6 Annex B:
* RegExp.prototype.compile() polyfill, described in E6 Annex B:
*
* https://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.compile
*

Loading…
Cancel
Save