improve module.exports check
fix empty object
support error handler
support empty static object
ArrayBuffer is deprecated in XMLHttpRequest.send(). Use ArrayBufferView instead.