scijs / cwise-parser

Parser for cwise
MIT License
8 stars 6 forks source link

Fix Node v6 incompatibility, DeprecationWarning: 'GLOBAL' is deprecated, use 'global' #4

Closed deathcap closed 8 years ago

deathcap commented 8 years ago

Node.js v6 deprecated capitalized GLOBAL in favor of lowercased global, in https://github.com/nodejs/node/pull/1838

Using GLOBAL prints a warning to stderr, which breaks wzrd (500 error): https://github.com/maxogden/wzrd/issues/15

This PR updates GLOBAL to global in cwise-parser, fixing the deprecation warning and avoiding the server error