    return Module;
}

// node.js Environment
var module;
if (module && module.exports) {
    makeVorbisEncoderModule({}, module);
}

// Web Worker Environment
if (self.document === undefined) {
    VorbisWorkerScript.main(self);
}

@@ -152,20 +152,38 @@
 ronment%0A
-if (
+var self;%0Aif (self && 
 self.doc

fix undefined in nodejs