JS: fix support for -outputdir (#22641)
The -outputdir
option wasn't correctly handled with the JS backend because the same code path was used to handle both objects produced by the JS backend and foreign .js files. Now we clearly distinguish the two in the pipeline, fixing the bug.
Fix #22641 (closed)