Commit 341ef008 authored by Rick Waldron's avatar Rick Waldron

Harden runtime check via process [[Class]] string

parent 3c4b86aa
...@@ -5,7 +5,8 @@ var browserGlobal = (typeof window !== 'undefined') ? window : {}; ...@@ -5,7 +5,8 @@ var browserGlobal = (typeof window !== 'undefined') ? window : {};
var MutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver; var MutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;
var async; var async;
if (typeof process !== 'undefined') { if (typeof process !== 'undefined' &&
{}.toString.call(process) === '[object process]') {
async = function(callback, binding) { async = function(callback, binding) {
process.nextTick(function() { process.nextTick(function() {
callback.call(binding); callback.call(binding);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment