[js] test exponent parsing errors