Summary
We get Unhandled JavaScript exception: [SyntaxError] Unexpected token Invalid. Expected property key when parser encounters ำ in an object key. Noticed this when trying to run code with TinyLD library bundled in. It's a JS library for detecting the language of the text. Other browsers handle this code just fine.
Operating system
Linux
Steps to reproduce
N/A
Expected behavior
N/A
Actual behavior
N/A
URL for a reduced test case
https://codepen.io/aplefull/pen/vEXVwpy?editors=0012
HTML/SVG/etc. source for a reduced test case
<script>
const a = {
ำ: 9,
};
</script>
Log output and (if possible) backtrace
Screenshots or screen recordings
No response
Build flags or config settings
No response
Contribute a patch?
Summary
We get
Unhandled JavaScript exception: [SyntaxError] Unexpected token Invalid. Expected property keywhen parser encountersำin an object key. Noticed this when trying to run code with TinyLD library bundled in. It's a JS library for detecting the language of the text. Other browsers handle this code just fine.Operating system
Linux
Steps to reproduce
N/A
Expected behavior
N/A
Actual behavior
N/A
URL for a reduced test case
https://codepen.io/aplefull/pen/vEXVwpy?editors=0012
HTML/SVG/etc. source for a reduced test case
Log output and (if possible) backtrace
Screenshots or screen recordings
No response
Build flags or config settings
No response
Contribute a patch?