evanw / node-source-map-support

Adds source map support to node.js (for stack traces)
MIT License
2.16k stars 222 forks source link

Synchronous XHR warning #49

Open danvk opened 9 years ago

danvk commented 9 years ago

When I source browser-source-map-support.js in Chrome 42, I get the following warning in the JS console:

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.

evanw commented 9 years ago

Yup, this sucks. Logged a bug against the spec: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28505. We'll see how it goes.

sjungwirth commented 8 years ago

I was hoping to use this with Zombie headless browser but that doesn't support synchronous XMLHttpRequests: https://github.com/assaf/zombie/issues/417

sekoyo commented 8 years ago

This should be easy to fix - https://github.com/evanw/node-source-map-support/blob/master/source-map-support.js#L99

Either have an install and an installAsync - or the inverse to be more like Node (but more of a compatibility break)

wbt commented 4 years ago

@DominicTobias Were you able to get a fix working?