JS: support profiling
Summary
The JS backend doesn't support profiling (SCC, etc.). It had been implemented in GHCJS but then disabled because of linking issues. We should give it another shot in the JS backend.
Steps to reproduce
Enable (remove js_skip
) and run tests in profiling
directory.