aboutsummaryrefslogtreecommitdiff
path: root/src/lstring.js
Commit message (Collapse)AuthorAge
* src/lstring.js: Use destructuring assignment for defs.jsdaurnimator2018-01-18
|
* src/lstring.js: Use lua_assert instead of assertdaurnimator2018-01-18
|
* TypedArray.toString() doesn't return a unique string in some browsersdaurnimator2018-01-07
| | | | | | | | | e.g. IE11 Instead iterate over string contents and manually build hash. I have *not* tested this for performance. An alternative option is to use Array.prototype.join.call
* Use Uint8Array.prototype.toString instead of .join (IE compat)daurnimator2018-01-06
|
* src/defs: Rename luastring_cmp to luastring_eqdaurnimator2018-01-06
|
* Support environments without a Uint8Array.fromdaurnimator2018-01-06
|
* Use Uint8Array to back stringsdaurnimator2017-12-13
|
* Add internal function defs.luastring_cmp for string equality checksdaurnimator2017-11-12
|
* Add is_luastring function instead of using Array.isArray directlydaurnimator2017-06-09
|
* src/ltable.js: Implement table_hash for lightuserdatadaurnimator2017-05-23
|
* Revert "src/lstring.js: Freeze strings to catch accidental modification"daurnimator2017-05-09
| | | | | | This reverts commit 5cb00bbae4f1afb5cd476a637975dd9220898e15. It turns out that frozen objects are slower, see https://jsperf.com/object-freeze-performance
* Cache string hashes in TStringdaurnimator2017-05-09
|
* Introduce a TString classdaurnimator2017-05-08
|
* src/lstring.js: Freeze strings to catch accidental modificationdaurnimator2017-05-08
|
* Move string functions to centralised lstring.jsdaurnimator2017-05-08