Fix condition for nodejs extension loading

This commit is contained in:
Pete Bevin 2014-11-23 22:55:54 -05:00
parent 053288f2fe
commit 539673ba9e

View File

@ -117,7 +117,7 @@ var g_output_modifiers = [];
// Automatic Extension Loading (node only):
//
if (typeof module !== 'undefind' && typeof exports !== 'undefined' && typeof require !== 'undefind') {
if (typeof module !== 'undefined' && typeof exports !== 'undefined' && typeof require !== 'undefined') {
var fs = require('fs');
if (fs) {