Sha256: eff5805c5428603c4b741fdba43772cd37f5a7f1eb792ac05671af368e663f59

Contents?: true

Size: 395 Bytes

Versions: 41

Compression:

Stored size: 395 Bytes

Contents

'use strict';

var define = require('define-properties');

var getPolyfill = require('./polyfill');

module.exports = function shimArrayBufferSlice() {
	if (typeof ArrayBuffer === 'function') {
		var polyfill = getPolyfill();
		define(
			ArrayBuffer.prototype,
			{ slice: polyfill },
			{ slice: function () { return ArrayBuffer.prototype.slice !== polyfill; } }
		);
	}

	return polyfill;
};

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.26 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.25 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.24 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.23 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.22 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.21 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.20 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.19 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.18 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.17 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.16 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.14 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.13 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.12 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.11 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.10 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.9 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.8 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.7 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.6 node_modules/arraybuffer.prototype.slice/shim.js