aboutsummaryrefslogtreecommitdiff
path: root/src/defs.js
Commit message (Collapse)AuthorAge
* Merge branch 'accept-jsstrings'daurnimator2018-03-30
|\
| * src/defs.js: Automatically convert js stringsdaurnimator2017-12-29
| |
* | src/{defs,luaconf}.js: Move path config to expected location in luaconf.jsdaurnimator2018-03-29
| | | | | | | | Had to move some export statements around, as there is now a circular dependency
* | src/defs.js: LUA_VERSUFFIX should only be defined in lualibdaurnimator2018-03-29
| |
* | src/{defs,lua}.js: LUA_INIT_VAR and LUA_INITVARVERSION are not normal exportsdaurnimator2018-03-29
| |
* | src/defs.js: to_jsstring now optionally replaces invalid utf8 sequences with ↵daurnimator2018-03-04
| | | | | | | | | | | | the unicode replacement character Related to https://github.com/fengari-lua/fengari-interop/issues/30
* | src/defs.js: Look in both /usr and /usr/localdaurnimator2018-02-17
| | | | | | | | | | Takes similar approach as patch carried by debian. https://anonscm.debian.org/cgit/pkg-lua/lua5.3.git/tree/debian/patches/0002-lua-modules-paths.patch?id=8dc227b2a85a160d2f1e92f9a21abd9e2e267735
* | src/defs.js: js files belong in share/ not lib/daurnimator2018-02-17
| |
* | Rename cpath to jspathdaurnimator2018-02-17
| |
* | src/defs.js: CPATH contains .js not .dll/.sodaurnimator2018-02-17
| | | | | | | | Closes #111
* | src/{defs,loadlib}.js: LUA_(C)PATH_DEFAULT now exported as lua stringsdaurnimator2018-01-30
| |
* | src/: Export LUA_SIGNATURE as lua string instead of js stringdaurnimator2018-01-29
| |
* | src/defs.js: Move string conversion functions to top of filedaurnimator2018-01-29
| |
* | src/defs.js: Remove defs.chardaurnimator2018-01-29
| |
* | Use destruturing require for luaconf.jsdaurnimator2018-01-22
| |
* | src/defs.js: Don't use assert, use TypeErrordaurnimator2018-01-18
| |
* | Remove defs.CT alias for defs.constant_typesdaurnimator2018-01-11
| |
* | Move fengari specific things to src/fengaricore.jsdaurnimator2018-01-11
| | | | | | | | String manipulation functions now get exposed on 'fengari' object itself at top level
* | Introduce luastring_indexOf as Uint8Array.indexOf doesn't exist everywheredaurnimator2018-01-07
| |
* | 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
* | Avoid String.fromCodePoint (IE compat)daurnimator2018-01-07
| |
* | Use Uint8Array.prototype.toString instead of .join (IE compat)daurnimator2018-01-06
| |
* | src/defs: Rename luastring_cmp to luastring_eqdaurnimator2018-01-06
| |
* | src/defs.js: Support environments with no String.codePointAtdaurnimator2018-01-06
| |
* | Support environments without a Uint8Array.fromdaurnimator2018-01-06
| |
* | src/defs.js: Fallback for when Uint8Array.of doesn't existdaurnimator2018-01-06
| |
* | Expose lua.luastring_of to construct a lua 'string' from raw byte valuesdaurnimator2018-01-06
| |
* | src/defs.js: Avoid for..of, as generated code uses Symbol.iterator, which ↵daurnimator2018-01-06
| | | | | | | | might not be available in older environments
* | src/defs.lua,LICENSE: Update copyright year for fengari codedaurnimator2018-01-02
|/
* src/: Add defs.from_userstring function to take string from apidaurnimator2017-12-29
|
* Use Uint8Array to back stringsdaurnimator2017-12-13
|
* Introduce defs.string_of to create string from bytesdaurnimator2017-12-13
|
* Use `typeof process === "undefined"` instead of WEB globaldaurnimator2017-12-10
| | | | This removes requirement to set global.WEB before requiring in node
* Add lua.to_uristringdaurnimator2017-11-12
|
* Add internal function defs.luastring_cmp for string equality checksdaurnimator2017-11-12
|
* src/defs.js: cleanup of to_luastringdaurnimator2017-11-12
|
* src/defs.js: Check for invalid continuation bytesdaurnimator2017-11-12
|
* src/defs.js: Avoid extra .slice operationdaurnimator2017-11-12
|
* src/defs.js: Refactor to_jsstringdaurnimator2017-11-12
| | | | | Now fails on non-utf8 input. Previously it would convert to equivalent unicode codepoints as bytes, which did not round-trip
* src/defs.js: minor optimisation of to_luastringdaurnimator2017-11-12
|
* src/defs.js: the highest unicode codepoint is U+10FFFFdaurnimator2017-11-12
| | | | | | utf8 dropped support for 5 and 6 byte sequences back in 2003 As we're converting from javascript strings (which are utf-16), codepoints above U+10FFFF can't occur anyway
* src/defs.js: Fix conversion of non-BMP unicode codepointsdaurnimator2017-11-12
| | | | Adds tests for to_luastring
* Move jshint config to package.jsondaurnimator2017-08-18
|
* Add is_luastring function instead of using Array.isArray directlydaurnimator2017-06-09
|
* LUA_NUMTAGS is inside constant_typesdaurnimator2017-05-31
|
* src/defs.js: remove unused import + unreachable codedaurnimator2017-05-30
|
* src/defs.js: Add default paths for WEBdaurnimator2017-05-29
|
* src/defs.js: Remove maxBytesToWrite argument from to_luastringdaurnimator2017-05-29
|
* src/defs.js: Use .codePointAt to avoid short-comings of .charCodeAtdaurnimator2017-05-29
|
* Fix some warnings found by closure-compilerdaurnimator2017-05-29
|