Can't handle UTF-8 in setup function
Closed this issue ยท 2 comments
coolaj86 commented
See https://jsperf.com/utf-8-acceptance-test
var str "I'm a โข โ who speaks **่ฏญๆ, loves ๐ข guitar, and plays in ๐ฉ!"
becomes
<script>
Benchmark.prototype.setup = function() {
var str = "I'm a โข โ who speaks **่ฏญๆ, loves
};
</script>
I changed things a little bit to not include 4-byte utf8 chars, but still couldn't run all of my intended tests:
https://jsperf.com/utf-8-encoding-decoding
coolaj86 commented
In case you can't actually see those characters, here are some others:
๐ฉ ๐ถ ๐ฆ ๐ ๐ข ๐ฉถ
๐ฉ ๐ถ ๐ฆ ๐ ๐ข ๐ฉถ