mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-01 04:49:00 +00:00
5ed3a54603
When building a JS::Value from CParamNode, strings have been "interned" since the conversion was written indd501b2a5a. This means that the JS string object could be used outside a JS realm, and also that those strings could be compared efficiently instead of char-by-char. This was unnecessary, and the only place in the code where we used "interned" strings. The upgrade to SpiderMonkey 45 (64b477625d) changed the name of related methods, and some of them are removed from the public API in SM 102, so stop pinning and atomizing those strings. Additionally, the switch of CParamNode to utf8 in35ed55cfd6missed one of the two utf16 handlings, so fix that as well.