Commits

Nikhil Marathe committed b1dfd4a

Replace deprecated process.mixin

Comments (0)

Files changed (2)

  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
-
-#include <iostream>
+#include "yajl.h"
 
 #include <yajl/yajl_parse.h>
 #include <yajl/yajl_gen.h>
 #include <node/node_events.h>
 
 #include "callbacks.h"
-#include "yajl.h"
 
 using namespace v8;
 using namespace node;
  *      { allowComments : true, checkUTF8 : true }
  */
 exports.createHandle = function(parser_config) {
-    cfg = process.mixin( {
-                allowComments : true
-              , checkUTF8 : true
-            }, parser_config );
+    parser_config = parser_config || {};
+    cfg = {
+            allowComments : parser_config.allowComments || true
+          , checkUTF8 : parser_config.checkUTF8 || true
+          };
     return new yajl.Handle( cfg );
 }