0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-24 15:19:31 -05:00
Commit graph

1227 commits

Author SHA1 Message Date
Bert Belder
0e09f12eca deps: update other submodules with libraries and build tools (#1160)
The following libraries and tools are upgraded to the version specified
in V8's `DEPS` file as of V8 11.0.226.2:
  * build
  * buildtools
  * clang
  * jinja2
  * markupsafe
  * trace_event
  * zlib
2022-12-18 22:55:12 +01:00
Bert Belder
8548b39833 deps: upgrade ICU to 72-1 (#1160)
ICU was upgraded to the version specified in V8's `DEPS` file as of V8
11.0.226.2.
2022-12-18 22:55:12 +01:00
denobot
42dd5390ca deps: upgrade V8 to 11.0.226.2 (#1160) 2022-12-18 22:55:12 +01:00
Bert Belder
b295e4146a chore: run clang-format (#1160) 2022-12-18 22:55:12 +01:00
Bert Belder
eb4fb3be96 chore: bump CI time-out to 3 hours (#1160)
Otherwise MacOS debug builds never make it to the finish line.
2022-12-18 22:55:12 +01:00
Bartek Iwańczuk
38c47a6308
chore: Track v8 11.0 (#1157) 2022-12-18 01:02:39 +01:00
denobot
b7cfc588fd v0.60.0 2022-12-13 01:10:30 +00:00
Bartek Iwańczuk
1874b33eff
ci: update release action (#1154) 2022-12-13 02:07:14 +01:00
Bartek Iwańczuk
b53ecc2f65
chore: Update docstring on v8::Global (#1153) 2022-12-09 15:20:40 +01:00
denobot
dd12978745 v0.59.0 2022-12-07 16:06:42 +00:00
Bartek Iwańczuk
80434ae27b
ci: provide crate name in release script (#1151) 2022-12-07 16:57:20 +01:00
Bartek Iwańczuk
9fc29f439e
feat: v8::Inspector::exception_thrown, v8::Inspector::create_stack_trace (#1149)
Adds APIs required to notify inspector about exceptions raised
by the runtime.
2022-12-07 14:43:55 +01:00
Bartek Iwańczuk
afe76971be
ci: add "release" action workflow (#1150)
This workflow will bump a version and create a tag which will kick-off another
build that will build release binary archives and create a GH release.

Maintainer is still responsible for building artifacts on M1 mac.
2022-12-06 04:21:44 +01:00
Bartek Iwańczuk
3e8a572ceb
feat: Add v8::Isolate::request_garbage_collection_for_testing (#1148) 2022-12-02 21:10:37 +01:00
Bartek Iwańczuk
0f43fc0b58
v0.58.0 2022-11-30 20:39:33 +01:00
Bartek Iwańczuk
caa2ef4510
feat: v8::Isolate::{add,remove}_gc_prologue_callback (#1142) 2022-11-30 19:10:42 +01:00
Ryan Dahl
3783a5c725
feat: Isolate::memory_pressure_notification() (#1139)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-11-30 17:25:10 +01:00
Divy Srivastava
e57c3ec90f
Optional key in v8::ArrayBuffer:detach (#1141) 2022-11-30 15:33:28 +01:00
Divy Srivastava
0b9423a0ee
Fix length type of FastApiOneByteString (#1140) 2022-11-30 15:32:10 +01:00
Bartek Iwańczuk
1bf74cca4a
v0.57.0 2022-11-29 23:36:43 +01:00
Divy Srivastava
f5c9e90c6d
Add SeqOneByteString to fast API calls (#1129) 2022-11-29 22:06:55 +01:00
Bartek Iwańczuk
3603c6e9c5
chore: update v8 submodule to floated patch for string support in Fast API (#1137) 2022-11-29 20:51:37 +01:00
hilldani
d4931dc891
resolve CVE-2022-37434 (#1136)
current zlib 1.2.12 is vulnerable to CVE-2022-37434 as documented on zlib website with details at https://nvd.nist.gov/vuln/detail/CVE-2022-37434. This resolves vulnerability by going to zlib 1.2.13
2022-11-28 21:07:03 +01:00
Jonathan Birk
9a0a6bc570
Meaningful error message if gn can't be run (#1115) 2022-11-27 03:03:24 +01:00
Mike Mulchrone
3c6d259507
Exposing Value::TypeOf (#1133) 2022-11-27 03:02:08 +01:00
Bartek Iwańczuk
04a5fa6737
v0.56.1 2022-11-26 17:39:44 +01:00
Bartek Iwańczuk
06f385afb6
Add 'aux_data' to v8::Inspector::contextCreated() (#1134) 2022-11-26 16:11:35 +01:00
Bartek Iwańczuk
7c0b53fe07
v0.56.0 2022-11-25 16:50:42 +01:00
Bartek Iwańczuk
65ff64e5cd
chore: update Rust to 1.65.0 (#1116) 2022-11-25 14:32:52 +01:00
denobot
f827193799
Rolling to V8 10.9.194.4 (#1122) 2022-11-25 00:23:22 +01:00
Nils Hasenbanck
e89d532b57
Remove libc dependency. (#1117)
Use `std` functionality where possible. Only size_t needs
to be defined like was done with the `intptr_t` type before.

Also unifies the usage of `std::os::raw` types that where
already defined in the support module.
2022-11-24 20:23:52 +05:30
Andreu Botella
d718370a07
refactor: Have ArrayBuffer::data return Option<NonNull<c_void>> (#1131)
The pointer returned by `ArrayBuffer::data` might be null if the
backing store has zero length, but the return type `*mut c_void` does
not force the user to consider this case. This change makes the return
type `Option<NonNull<c_void>>`, which is semantically equivalent, but
which forces users of the API to handle the `None` case.

This PR is the `ArrayBuffer` counterpart to #817.

This is a breaking API change.
2022-11-24 15:31:11 +01:00
Divy Srivastava
3a05ab4cd6
Add WasmMemoryObject::buffer method (#1128) 2022-11-23 21:44:37 +05:30
Bartek Iwańczuk
dd5fa705d4
Add v8::V8Inspector::context_destroyed API (#1125) 2022-11-22 23:50:49 +01:00
Andreu Botella
d992c5056b
Update ArrayBuffer::was_detached to not use OpenHandle (#1126)
In #1103, the `ArrayBuffer::was_detached` method was added to rusty_v8
to fill a gap in the C++ API, and it was implemented using the
internal `v8::Utils::OpenHandle`. Since then, a `WasDetached` method
was added to `ArrayBuffer` in V8 10.9. This PR updates the
implementation to use that.
2022-11-21 12:47:12 +01:00
Andreu Botella
acba887fa4
Add ArrayBuffer::set_detach_key (#1127)
This method, introduced in V8 10.9, makes it so an `ArrayBuffer`
object is impossible to detach unless a specific detach key is passed
to the `detach` method. Such `ArrayBuffer`s still count as detachable
as per the `ArrayBuffer::is_detachable` method, but otherwise behave
much like WebAssembly memories.
2022-11-21 12:46:57 +01:00
Mark Gutenberger
601fed8d2a
(docs): add note about curl [#1111] (#1114) 2022-11-20 22:02:47 +01:00
Bartek Iwańczuk
3d30e7cc82
feat: v8::Module::get_stalled_top_level_await_message (#1123)
This commit adds "v8::Module::get_stalled_top_level_await_message" API
that allows to retrieve a vector of tuples with handles to v8::Module and v8::Message.
This information can be used to display a nice error when event loop runs out
of work to do but there are still unresolved promises.
2022-11-17 19:35:15 +01:00
Bartek Iwańczuk
cc7183d09f
v0.55.0 2022-11-12 03:14:26 +01:00
Bartek Iwańczuk
9d15050214
fix: Rework deprecated v8::ArrayBuffer:detach API (#1121) 2022-11-12 01:51:21 +01:00
denobot
84880f49eb
Rolling to V8 10.9.194.1 (#1118) 2022-11-11 20:33:40 +01:00
Bartek Iwańczuk
5265b6b021
Track v8 10.9 (#1119) 2022-11-11 00:31:07 +01:00
denobot
dd91b4d299
Rolling to V8 10.8.168.14 (#1112) 2022-11-09 13:45:17 -08:00
Bartek Iwańczuk
b8d7925774
docs: add note how to create a v8::Local out of v8::Global (#1113) 2022-11-02 22:09:07 +01:00
denobot
7091248630
Rolling to V8 10.8.168.5 (#1110) 2022-10-22 23:57:09 +02:00
Bartek Iwańczuk
0b299420bd
v0.54.0 2022-10-20 16:49:39 +02:00
Bert Belder
d85f78527f
perf: optimize FunctionCallbackInfo and PropertyCallbackInfo methods (#1104) 2022-10-19 21:41:22 +02:00
denobot
c89ae9453b
Rolling to V8 10.8.168.4 (#1106)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-10-18 23:47:07 +02:00
Bartek Iwańczuk
2ead748b90
Track v8 10.8 (#1105) 2022-10-18 21:58:19 +02:00
Divy Srivastava
8a3a049d9f
Access to raw v8::Context slots (#1092)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-10-18 14:01:54 +02:00