replaceSymbolsInJavascript: assert that warnings are emitted.