UNPKG

cloudworker-proxy

Version:
20 lines (15 loc) 416 B
'use strict'; var getPolyfill = require('./polyfill'); var define = require('define-properties'); var stream = require('stream'); module.exports = function shimStreamPipeline() { var polyfill = getPolyfill(); if (polyfill !== stream) { define(stream, {pipeline: polyfill}, { pipeline: function testpipeline() { return stream.pipeline !== polyfill; } }); } return polyfill; };