Commit graph

77 commits

Author SHA1 Message Date
Christoph Herzog
7098e1ab7e Formatting... 2019-08-12 17:08:45 +02:00
Christoph Herzog
2065a498f6 Implement object deserialization to HashMap 2019-08-12 16:42:00 +02:00
Christoph Herzog
5288235c9b Add JsValue::into_string helper method 2019-08-12 10:44:02 +02:00
Christoph Herzog
df142c859d Update lib to 0.3 in quick-js
* needed to adapt two function calls from u32 to usize
2019-08-12 08:54:17 +02:00
Alexander Rodin
a940b0ba47 Add note about runtimes and threads to the docs (#15)
Add note about runtimes and threads
2019-08-04 14:42:47 +02:00
Christoph Herzog
a4632c10d4 Fix pointer logic for callbacks. 2019-07-31 00:24:13 +02:00
Christoph Herzog
b1cb44adbc Allow more callback function signatures
* allow up to 5 arguments
* allow returning a Result<T, E>: Err(_) is converted to a JS exception
2019-07-30 20:46:31 +02:00
Christoph Herzog
8f4907eeb3 Document all items and deny missing docs. 2019-07-30 18:01:27 +02:00
Christoph Herzog
384b9f1189 Future-proof error enums with a __NonExhaustive variant. 2019-07-30 17:48:53 +02:00
Christoph Herzog
8b5f37a0d4 Fix clippy warnings 2019-07-30 17:04:49 +02:00
Christoph Herzog
90e11d7f48 Formatting... 2019-07-30 17:04:49 +02:00
Christoph Herzog
d3ca743ab1 Add Context::reset() that allows clearing all state. 2019-07-30 16:42:14 +02:00
Christoph Herzog
9e7ef36b58 Add ContextBuilder and allow customizing JS Runtime memory limit 2019-07-30 16:27:06 +02:00
Christoph Herzog
e1e67ae077 Improve JS runtime exception conversion 2019-07-30 16:27:06 +02:00
Christoph Herzog
31ecb12bab Improve string serialization - use NewStringLen to avoid cstring cast 2019-07-30 16:27:06 +02:00
Christoph Herzog
a638222cb8 Add a large string serialization test 2019-07-30 16:27:06 +02:00
Christoph Herzog
8a8d0b4528 Improve code docs. 2019-07-22 10:26:11 +02:00
Christoph Herzog
3851a43e85 Rename crate to quick-js 2019-07-22 09:49:30 +02:00
Christoph Herzog
51d0f28b20 Refactor crate names... damn name squatters! 2019-07-16 23:47:12 +02:00
Christoph Herzog
2b5d63bfb4 Fix exception handling (convert objects to string) 2019-07-16 16:36:56 +02:00
Christoph Herzog
9de3f94510 Fix warnings and add #![deny(warnings)] setting 2019-07-16 16:08:13 +02:00
Christoph Herzog
72f4907eb2 Add doc tests for Context methods 2019-07-16 16:06:23 +02:00
Christoph Herzog
00d9c9e9fb Add some more tests 2019-07-16 14:40:45 +02:00
Christoph Herzog
8f4b124b00 Callbacks: handle panics and propagate any errors to JS as an exception 2019-07-16 14:26:04 +02:00
Christoph Herzog
aebe684edf Cleanup and initial code documenation
* Remove some unused code
* Add method/struct comments
2019-07-16 10:33:15 +02:00
Christoph Herzog
49aee8be6a Add eval_as helper. 2019-07-16 10:02:53 +02:00
Christoph Herzog
3ebc1bd4aa Initial commit with working project. 2019-07-16 09:41:39 +02:00