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
decidim-0.26.8 packages/eslint-config/node_modules/arraybuffer.prototype.slice/shim.js