Bert Belder
3b6ed67f5e
Rewrite the scope system from scratch ( #406 )
2020-06-26 01:42:00 +02:00
Bert Belder
8a4dc30445
Rename to_local() to cast_local(), use a closure ( #406 )
...
This makes it possible to add a run-time check that verifies that the
specified closure is actually the one that contains the local handle.
2020-06-19 20:18:07 +02:00
Bert Belder
74d806cbe3
Make error constructors in Exception less repetitive ( #394 )
2020-06-01 08:57:45 +02:00
Bert Belder
8213c0e428
Remove incorrect uses of Local::from_raw() ( #385 )
2020-05-31 13:41:42 +02:00
Bert Belder
d1ac68f0c8
Always use raw pointers to send V8 handles between C++ and Rust ( #349 )
...
And other pointer usage touch-ups on the C++ side:
- const parameters are passed by & reference.
- mutable parameters are passed by * pointer.
2020-04-14 00:34:32 +02:00
Bert Belder
926f3a19da
Update generated types/traits, and generate more types ( #300 )
2020-03-05 17:42:55 -08:00
Bert Belder
d4cd5d2733
Move error constructors and helper functions under v8::Exception ( #215 )
...
* The purpose of this change is to match the C++ API more closely.
* This patch also increases consistency between the 'extern "C"'
function definitions on the Rust side with those on the C++ side.
* The 'message' parameter (a v8::String) to the various error
constructors no longer needs to be mutable.
2020-01-17 08:22:16 +01:00
Bert Belder
b09df9b552
Fix bug in v8::create_message() argument lifetimes ( #212 )
2020-01-17 02:24:41 +01:00
Bert Belder
a230735902
Refactor scopes and callbacks so users don't need to transmute ( #183 )
2020-01-16 22:48:27 +01:00
Bartek Iwańczuk
bddefbc2b2
Implicitly enter Isolate in v8::error ( #191 )
2020-01-05 18:07:50 +01:00
Ry Dahl
1f610ba5a5
Add StackFrame ( #159 )
2019-12-31 11:17:26 -05:00
Ry Dahl
5467ca9295
Improve v8::Message ( #158 )
2019-12-31 09:40:34 -05:00
Bert Belder
ae4b48eb22
Get rid of HandleScope closure, add CallbackScope ( #119 )
2019-12-25 00:31:36 +01:00
Bert Belder
196b5f60e4
Fix more mutability and lifetime issues ( #103 )
2019-12-21 06:11:12 +01:00
Bert Belder
331582561b
Add Local lifetimes back ( #95 )
2019-12-21 02:11:54 +01:00
Ry Dahl
e89a968ff2
add more docs and clean up exception, json modules ( #92 )
2019-12-20 08:47:20 -05:00
Ry Dahl
68742be011
Remove lifetimes from Local, HandleScope, Locker ( #90 )
...
add v8_str
2019-12-19 23:36:29 -05:00
Ry Dahl
b610e7cda9
Add v8::Isolate::add_message_listener ( #89 )
2019-12-19 21:34:07 -05:00
Ryan Dahl
887af28790
Remove LockedIsolate
2019-12-19 20:32:47 -05:00
Ry Dahl
11ba352065
Rename CxxIsolate to Isolate and Isolate to OwnedIsolate ( #85 )
2019-12-19 19:15:52 -05:00
Bartek Iwańczuk
54a7c0ff33
add docs to various structs ( #82 )
2019-12-19 14:14:19 +01:00
Bartek Iwańczuk
e6e35a57e9
add v8::Exception ( #50 )
2019-12-09 02:26:58 +01:00