When running parcel without scope hoisting, global references are not passed through correctly in the DevPackager module. This results in runtime errors when any code directly uses global. without any checks of its existence since var global = arguments[3] is always undefined. These changes amend the pass through of the global object, so that arguments[3] exists under a privately namespaced variable to prevent collisions with other constants named global.
↪️ Pull Request
When running parcel without scope hoisting,
global
references are not passed through correctly in theDevPackager
module. This results in runtime errors when any code directly usesglobal.
without any checks of its existence sincevar global = arguments[3]
is always undefined. These changes amend the pass through of the global object, so thatarguments[3]
exists under a privately namespaced variable to prevent collisions with other constants named global.🚨 Test instructions
yarn test:integration