This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Polyfill for createImageBitmap | |
* https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/createImageBitmap | |
* | |
* Supports CanvasImageSource (img, video, canvas) sources, Blobs, and ImageData. | |
* | |
* From: | |
* - https://dev.to/nektro/createimagebitmap-polyfill-for-safari-and-edge-228 | |
* - https://gist.github.com/MonsieurV/fb640c29084c171b4444184858a91bc7 | |
* Updated by: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var output = (function ( object ) { | |
"use strict"; | |
var names = []; | |
var props = Object.getOwnPropertyNames( object ); | |
var proto = Object.getPrototypeOf( object ); | |
while ( proto ) { | |
names = Object.getOwnPropertyNames( proto ); |