Skip to content

Instantly share code, notes, and snippets.

View at15four2020's full-sized avatar
📆
The time is going

Fifteen Four at15four2020

📆
The time is going
View GitHub Profile
@at15four2020
at15four2020 / js-timeout-polyfill.js
Last active May 20, 2020 01:48 — forked from kayhadrin/js-timeout-polyfill.js
Nashorn setTimeout polyfill
/**
* js-timeout-polyfill
* @see https://blogs.oracle.com/nashorn/entry/setinterval_and_settimeout_javascript_functions
*/
(function (global) {
'use strict';
if (global.setTimeout ||
global.clearTimeout ||
global.setInterval ||