JS backend: tests for char type
JS backend: support for char type