Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Merge branch 'accept-jsstrings' | daurnimator | 2018-03-30 |
|\ | |||
| * | src/defs.js: Automatically convert js strings | daurnimator | 2017-12-29 |
| | | |||
* | | src/{defs,luaconf}.js: Move path config to expected location in luaconf.js | daurnimator | 2018-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 lualib | daurnimator | 2018-03-29 |
| | | |||
* | | src/{defs,lua}.js: LUA_INIT_VAR and LUA_INITVARVERSION are not normal exports | daurnimator | 2018-03-29 |
| | | |||
* | | src/defs.js: to_jsstring now optionally replaces invalid utf8 sequences with ↵ | daurnimator | 2018-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/local | daurnimator | 2018-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/ | daurnimator | 2018-02-17 |
| | | |||
* | | Rename cpath to jspath | daurnimator | 2018-02-17 |
| | | |||
* | | src/defs.js: CPATH contains .js not .dll/.so | daurnimator | 2018-02-17 |
| | | | | | | | | Closes #111 | ||
* | | src/{defs,loadlib}.js: LUA_(C)PATH_DEFAULT now exported as lua strings | daurnimator | 2018-01-30 |
| | | |||
* | | src/: Export LUA_SIGNATURE as lua string instead of js string | daurnimator | 2018-01-29 |
| | | |||
* | | src/defs.js: Move string conversion functions to top of file | daurnimator | 2018-01-29 |
| | | |||
* | | src/defs.js: Remove defs.char | daurnimator | 2018-01-29 |
| | | |||
* | | Use destruturing require for luaconf.js | daurnimator | 2018-01-22 |
| | | |||
* | | src/defs.js: Don't use assert, use TypeError | daurnimator | 2018-01-18 |
| | | |||
* | | Remove defs.CT alias for defs.constant_types | daurnimator | 2018-01-11 |
| | | |||
* | | Move fengari specific things to src/fengaricore.js | daurnimator | 2018-01-11 |
| | | | | | | | | String manipulation functions now get exposed on 'fengari' object itself at top level | ||
* | | Introduce luastring_indexOf as Uint8Array.indexOf doesn't exist everywhere | daurnimator | 2018-01-07 |
| | | |||
* | | TypedArray.toString() doesn't return a unique string in some browsers | daurnimator | 2018-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) | daurnimator | 2018-01-07 |
| | | |||
* | | Use Uint8Array.prototype.toString instead of .join (IE compat) | daurnimator | 2018-01-06 |
| | | |||
* | | src/defs: Rename luastring_cmp to luastring_eq | daurnimator | 2018-01-06 |
| | | |||
* | | src/defs.js: Support environments with no String.codePointAt | daurnimator | 2018-01-06 |
| | | |||
* | | Support environments without a Uint8Array.from | daurnimator | 2018-01-06 |
| | | |||
* | | src/defs.js: Fallback for when Uint8Array.of doesn't exist | daurnimator | 2018-01-06 |
| | | |||
* | | Expose lua.luastring_of to construct a lua 'string' from raw byte values | daurnimator | 2018-01-06 |
| | | |||
* | | src/defs.js: Avoid for..of, as generated code uses Symbol.iterator, which ↵ | daurnimator | 2018-01-06 |
| | | | | | | | | might not be available in older environments | ||
* | | src/defs.lua,LICENSE: Update copyright year for fengari code | daurnimator | 2018-01-02 |
|/ | |||
* | src/: Add defs.from_userstring function to take string from api | daurnimator | 2017-12-29 |
| | |||
* | Use Uint8Array to back strings | daurnimator | 2017-12-13 |
| | |||
* | Introduce defs.string_of to create string from bytes | daurnimator | 2017-12-13 |
| | |||
* | Use `typeof process === "undefined"` instead of WEB global | daurnimator | 2017-12-10 |
| | | | | This removes requirement to set global.WEB before requiring in node | ||
* | Add lua.to_uristring | daurnimator | 2017-11-12 |
| | |||
* | Add internal function defs.luastring_cmp for string equality checks | daurnimator | 2017-11-12 |
| | |||
* | src/defs.js: cleanup of to_luastring | daurnimator | 2017-11-12 |
| | |||
* | src/defs.js: Check for invalid continuation bytes | daurnimator | 2017-11-12 |
| | |||
* | src/defs.js: Avoid extra .slice operation | daurnimator | 2017-11-12 |
| | |||
* | src/defs.js: Refactor to_jsstring | daurnimator | 2017-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_luastring | daurnimator | 2017-11-12 |
| | |||
* | src/defs.js: the highest unicode codepoint is U+10FFFF | daurnimator | 2017-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 codepoints | daurnimator | 2017-11-12 |
| | | | | Adds tests for to_luastring | ||
* | Move jshint config to package.json | daurnimator | 2017-08-18 |
| | |||
* | Add is_luastring function instead of using Array.isArray directly | daurnimator | 2017-06-09 |
| | |||
* | LUA_NUMTAGS is inside constant_types | daurnimator | 2017-05-31 |
| | |||
* | src/defs.js: remove unused import + unreachable code | daurnimator | 2017-05-30 |
| | |||
* | src/defs.js: Add default paths for WEB | daurnimator | 2017-05-29 |
| | |||
* | src/defs.js: Remove maxBytesToWrite argument from to_luastring | daurnimator | 2017-05-29 |
| | |||
* | src/defs.js: Use .codePointAt to avoid short-comings of .charCodeAt | daurnimator | 2017-05-29 |
| | |||
* | Fix some warnings found by closure-compiler | daurnimator | 2017-05-29 |
| |