Sha256: eff5805c5428603c4b741fdba43772cd37f5a7f1eb792ac05671af368e663f59

Contents?: true

Size: 395 Bytes

Versions: 42

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

42 entries across 42 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.52 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.51 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.50 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.49 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.48 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.47 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.46 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.45 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.44 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.43 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.42 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.41 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.40 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.39 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.38 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.32 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.31 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.30 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.29 node_modules/arraybuffer.prototype.slice/shim.js
immosquare-cleaner-0.1.28 node_modules/arraybuffer.prototype.slice/shim.js