[PATCH] Install polyfill if clearImmediate is undefined Library have setImmediate polyfilled without clearImmediate. This breaks some embed library because it's compiled with webpack which depends on this module as a sub-dependency.
Checking that both setImmediate and clearImmediate are defined before exiting ensures that the polyfill is always attached when needed.
From f204888576839a98f4a9fc8b44ec8a81be2ec108 Mon Sep 17 00:00:00 2001