Commit 8f5c2870 authored by Yehuda Katz's avatar Yehuda Katz

Merge pull request #11 from rwldrn/10

Harden runtime check via process [[Class]] string. Closes gh-10
parents df1d9ba7 341ef008
...@@ -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