Matt Mastracci
8f282fa04b
chore: typo ( #1327 )
2023-09-20 11:56:59 -06:00
Matt Mastracci
35578c8580
fix: never create a null slice ( #1326 )
2023-09-20 14:37:10 +00:00
Laurence Rowe
b2a7cfe0c2
fix(Symbol): deprecate for_global
in favour of for_key
and for_api
( #1324 )
...
`for_global` was documented as `for_key` but implemented as `for_api`.
Closes #1323
2023-09-18 17:48:13 -06:00
Bartek Iwańczuk
0f0697039e
v0.76.0 ( #1319 )
2023-09-13 16:40:57 +02:00
denobot
f147f0250d
Rolling to V8 11.8.172.3 ( #1317 )
2023-09-12 16:30:24 -07:00
Bert Belder
53e048ffc7
fix: crash on x86_64 systems that support memory protection keys ( #1318 )
...
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2023-09-12 23:26:42 +00:00
denobot
6eb4b811df
Rolling to V8 11.8.172.1 ( #1316 )
2023-09-08 17:01:54 +02:00
Bartek Iwańczuk
bdd4fc3f6e
chore: track v8 11.8 ( #1315 )
2023-09-08 14:58:23 +02:00
denobot
4cf545b925
Rolling to V8 11.7.439.15 ( #1311 )
2023-09-06 07:23:41 -04:00
Matt Mastracci
987d520221
fix: don't allocate for zero-length strings ( #1309 )
2023-09-01 08:54:52 -04:00
denobot
aa203e032c
Rolling to V8 11.7.439.14 ( #1307 )
2023-09-01 10:35:38 +00:00
dependabot[bot]
a0aa26d648
build(deps): bump bumpalo from 3.9.1 to 3.13.0 ( #1306 )
...
Bumps [bumpalo](https://github.com/fitzgen/bumpalo ) from 3.9.1 to 3.13.0.
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.9.1...3.13.0 )
---
updated-dependencies:
- dependency-name: bumpalo
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-25 17:43:19 +00:00
Ryan Dahl
3ff89f4146
v0.75.1
2023-08-24 15:58:08 +00:00
denobot
3d1c2c0313
Rolling to V8 11.7.439.6 ( #1304 )
2023-08-24 09:56:19 -04:00
Bert Belder
7c78966d55
chore: turn pointer compression off again ( #1302 )
...
The memory leak caused by the EPT table not being subject to garbage
collection is apparently still there.
2023-08-24 03:28:19 +00:00
denobot
c77f06441e
Rolling to V8 11.7.439.5 ( #1300 )
2023-08-23 12:14:19 -04:00
Troy J. Farrell
32fad14643
Remove a redundant and confusing sentence from FAQ ( #1297 )
2023-08-16 21:24:49 +00:00
Bartek Iwańczuk
8bea295a0e
v0.75.0 ( #1299 )
2023-08-09 14:55:53 +00:00
Bartek Iwańczuk
dbca136bee
ci: exclude def files from third_party/abseil-cpp ( #1298 )
2023-08-09 16:30:57 +02:00
denobot
4573256203
Rolling to V8 11.7.439.1 ( #1296 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-08-08 23:29:54 +00:00
Bartek Iwańczuk
8c8f88a294
chore: track v8 11.7 ( #1295 )
2023-08-08 14:12:30 +00:00
denobot
4b8ee0b235
Rolling to V8 11.6.189.16 ( #1292 )
2023-08-04 14:49:44 +02:00
denobot
86fddc2fc8
Rolling to V8 11.6.189.15 ( #1291 )
2023-07-28 13:27:55 +02:00
Aapo Alasuutari
715060df6e
fix: 32-bit build fails on non-size_t based size assertions ( #1289 )
2023-07-27 09:10:17 -04:00
denobot
1d6988942b
Rolling to V8 11.6.189.14 ( #1288 )
2023-07-25 13:08:28 +02:00
Bartek Iwańczuk
c923d78750
v0.74.3 ( #1287 )
2023-07-22 15:28:48 -06:00
Bartek Iwańczuk
e908964fc4
feat: Add v8::Value::type_repr() ( #1285 )
2023-07-21 09:42:18 -06:00
denobot
e1c403f384
Rolling to V8 11.6.189.12 ( #1286 )
2023-07-21 13:57:26 +02:00
Andreu Botella
f360663e67
feat: Add {Dis,}allowJavascriptExecutionScope
( #862 )
...
This commit adds two new types of scopes:
- DisallowJavascriptExecutionScope
- AllowJavascriptExecutionScope
The first one can be used to prevent execution of JavaScript
(with customizable behavior on an attempt of executing JS, eg.
crashing the process); while the second one can be constructed
from the first to temporarily enable executing JS.
These are useful for "value serializers" to prevent user defined objects
from causing unintended behavior.
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-07-19 14:52:58 +02:00
denobot
1d3572b5aa
Rolling to V8 11.6.189.11 ( #1281 )
2023-07-18 11:33:51 +02:00
Aapo Alasuutari
fcf0281d3e
fix(OneByteConst): missing ASCII assertion, assert length ( #1282 )
...
Fix missing ASCII assertion, assert length
2023-07-13 17:51:34 -06:00
Matt Mastracci
096c540393
chore: update to Rust 1.71 ( #1283 )
2023-07-13 12:42:58 -04:00
Aapo Alasuutari
308a113445
feat: Implement Rust-side const ExternalOneByteStringResource subclass ( #1275 )
...
MSVC and Itanium C++ ABIs agree that for simple inheritance the basic structure of a vtable contains metadata fields at a "negative offset" from the vtable pointer, and at zero or positive offsets come the virtual function pointers in the order of declaration. The only difference between the two is that MSVC only places the virtual deleting destructor in the vtable while Itanium ABI places both the deleting and the complete object destructors in it, leading to a vtable that is one pointer larger in Itanium / on Linux. Also MSVC only has a single metadata field instead of two for Itanium. Itanium inlines the base offset into the vtable while MSVC keeps it in what is essentially the entry point into the type info data.
Since the two are so similar, creating a custom vtable on Rust-side is pretty easy and can be done entirely at compile-time, meaning that instances of the class can also be created entirely at compile time. This leads to fully const external strings being possible.
2023-07-12 07:22:12 -06:00
Bartek Iwańczuk
4dd8b60bf0
chore: update to Rust 1.70.0 ( #1277 )
2023-07-11 12:50:03 -06:00
Matt Mastracci
4110d1bf4e
chore: Add Debug for ExternalReference ( #1272 )
2023-07-11 10:09:29 -06:00
Matt Mastracci
226c662da6
fix: Use unaligned read as copy_nonoverlapping requires alignment ( #1278 )
2023-07-11 08:07:47 -06:00
Matt Mastracci
9d5c21ae7e
feat: Add Uint8 type for fastcall ( #1279 )
2023-07-11 08:07:29 -06:00
denobot
ed0aa000ef
Rolling to V8 11.6.189.9 ( #1264 )
2023-07-11 12:50:04 +00:00
Leo Kettmeir
c6fe9e70d0
feat: v8::Object::PreviewEntries ( #1276 )
2023-07-10 19:30:11 +02:00
Bartek Iwańczuk
70239dc4ce
v0.74.2 ( #1274 )
2023-07-09 23:02:29 +02:00
Bartek Iwańczuk
73dcb46674
Add v8::NamedPropertyHandlerConfiguration::*_raw methods ( #1273 )
2023-07-09 22:40:15 +02:00
Graham Abbott
e2c6541ea3
silence warning for unused 'must use' ( #1269 )
...
this warning only occurs when using the library as a dependency.
warning: unused return value of `Box::<T>::from_raw` that must be used
--> /rusty_v8/src/scope.rs:1092:16
|
1092 | unsafe { Box::from_raw(root) };
| ^^^^^^^^^^^^^^^^^^^
|
= note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`
= note: `#[warn(unused_must_use)]` on by default
2023-07-08 08:45:50 -06:00
cions
ca83ce53ba
Fix build for android ( #1246 )
2023-07-01 13:21:12 -04:00
Bartek Iwańczuk
1990a6dff5
v0.74.1 ( #1262 )
2023-07-01 22:13:52 +05:30
Matt Mastracci
d706291c5d
fix: Ensure that one-byte strings that are not ASCII go through write_utf8_uninit ( #1261 )
2023-06-30 09:46:29 -06:00
denobot
c4033caf23
Rolling to V8 11.6.189.7 ( #1260 )
2023-06-30 14:38:20 +02:00
Bartek Iwańczuk
3f785f0429
v0.74.0 ( #1258 )
2023-06-29 18:03:17 +02:00
Matt Mastracci
ad0a65d0a5
feat: Use MaybeUninit for to_rust_string_lossy and add to_rust_cow_lossy ( #1256 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-06-28 07:46:50 -06:00
Matt Mastracci
517f4d7032
chore: Add copy, clone and debug to some fast API types ( #1257 )
...
chore: Add copy, clone and debug to some types
2023-06-28 07:46:25 -06:00
Rakeeb Hossain
7419b38aac
Add Function::{ScriptId, GetScriptOrigin}, ScriptOrigin::Get{ScriptId, ResourceName, SourceMapUrl}
bindings ( #1250 )
2023-06-28 08:09:07 +02:00