0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2025-01-13 17:40:23 -05:00
denoland-rusty-v8/src
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
..
array_buffer.rs ArrayBuffer: add binding for IsResizableByUserJavaScript (#1205) 2023-03-27 19:33:58 +02:00
array_buffer_view.rs Inline API functions (#1078) 2022-09-21 08:15:33 +05:30
bigint.rs chore: update Rust to 1.65.0 (#1116) 2022-11-25 14:32:52 +01:00
binding.cc feat: Add {Dis,}allowJavascriptExecutionScope (#862) 2023-07-19 14:52:58 +02:00
context.rs feat: Add the option to disable generation from strings (#1222) 2023-04-30 12:29:40 +02:00
data.rs Inline API functions (#1078) 2022-09-21 08:15:33 +05:30
date.rs Inline API functions (#1078) 2022-09-21 08:15:33 +05:30
exception.rs feat: Add v8::StackTrace::current_script_name_or_source_url (#1211) 2023-04-21 19:09:56 +02:00
external.rs chore: update to Rust 1.66.0 (#1156) 2022-12-21 00:11:23 +01:00
external_references.rs chore: Add Debug for ExternalReference (#1272) 2023-07-11 10:09:29 -06:00
fast_api.rs fix: Use unaligned read as copy_nonoverlapping requires alignment (#1278) 2023-07-11 08:07:47 -06:00
fixed_array.rs Inline API functions (#1078) 2022-09-21 08:15:33 +05:30
function.rs Add Function::{ScriptId, GetScriptOrigin}, ScriptOrigin::Get{ScriptId, ResourceName, SourceMapUrl} bindings (#1250) 2023-06-28 08:09:07 +02:00
gc.rs Improved ObjectTemplate::set_*_handlers (#1237) 2023-05-26 13:14:18 +02:00
get_property_names_args_builder.rs Improved ObjectTemplate::set_*_handlers (#1237) 2023-05-26 13:14:18 +02:00
handle.rs Update and improve documentation about finalizers (#1182) 2023-02-02 11:45:22 +00:00
icu.rs deps: upgrade ICU to 72-1 (#1160) 2022-12-18 22:55:12 +01:00
inspector.rs Avoid referencing uninitalized in Inspector API (#1164) 2023-01-15 20:00:38 +05:30
isolate.rs Rolling to V8 11.6.189.6 (#1253) 2023-06-27 15:50:31 +00:00
isolate_create_params.rs feat: Add v8::CreateParams::has_set_array_buffer_allocator (#1232) 2023-05-22 12:33:17 +00:00
json.rs Inline API functions (#1078) 2022-09-21 08:15:33 +05:30
lib.rs feat: Add {Dis,}allowJavascriptExecutionScope (#862) 2023-07-19 14:52:58 +02:00
module.rs chore: update Rust to 1.65.0 (#1116) 2022-11-25 14:32:52 +01:00
name.rs Inline API functions (#1078) 2022-09-21 08:15:33 +05:30
number.rs Inline API functions (#1078) 2022-09-21 08:15:33 +05:30
object.rs chore: update to Rust 1.70.0 (#1277) 2023-07-11 12:50:03 -06:00
platform.rs Inline API functions (#1078) 2022-09-21 08:15:33 +05:30
primitive_array.rs chore: update to Rust 1.70.0 (#1277) 2023-07-11 12:50:03 -06:00
primitives.rs use Isolate for creating primitives (#1082) 2022-10-06 20:44:16 +02:00
private.rs chore: update Rust to 1.65.0 (#1116) 2022-11-25 14:32:52 +01:00
promise.rs chore: update Rust to 1.65.0 (#1116) 2022-11-25 14:32:52 +01:00
property_attribute.rs Improved ObjectTemplate::set_*_handlers (#1237) 2023-05-26 13:14:18 +02:00
property_descriptor.rs Improved ObjectTemplate::set_*_handlers (#1237) 2023-05-26 13:14:18 +02:00
property_filter.rs Improved ObjectTemplate::set_*_handlers (#1237) 2023-05-26 13:14:18 +02:00
property_handler_flags.rs Improved ObjectTemplate::set_*_handlers (#1237) 2023-05-26 13:14:18 +02:00
proxy.rs chore: update Rust to 1.65.0 (#1116) 2022-11-25 14:32:52 +01:00
scope.rs feat: Add {Dis,}allowJavascriptExecutionScope (#862) 2023-07-19 14:52:58 +02:00
script.rs Add Function::{ScriptId, GetScriptOrigin}, ScriptOrigin::Get{ScriptId, ResourceName, SourceMapUrl} bindings (#1250) 2023-06-28 08:09:07 +02:00
script_compiler.rs Fix build for v11.4 (#1218) 2023-04-27 01:03:54 +02:00
script_or_module.rs Inline API functions (#1078) 2022-09-21 08:15:33 +05:30
shared_array_buffer.rs Inline API functions (#1078) 2022-09-21 08:15:33 +05:30
snapshot.rs chore: update Rust to 1.65.0 (#1116) 2022-11-25 14:32:52 +01:00
string.rs fix(OneByteConst): missing ASCII assertion, assert length (#1282) 2023-07-13 17:51:34 -06:00
support.h Run clang-format (#582) 2021-01-11 19:38:20 -08:00
support.rs chore: update Rust to 1.65.0 (#1116) 2022-11-25 14:32:52 +01:00
symbol.rs chore: update Rust to 1.65.0 (#1116) 2022-11-25 14:32:52 +01:00
template.rs Add v8::NamedPropertyHandlerConfiguration::*_raw methods (#1273) 2023-07-09 22:40:15 +02:00
typed_array.rs feat: Add v8::TypedArray::length (#1166) 2023-01-08 15:11:19 +01:00
unbound_module_script.rs Inline API functions (#1078) 2022-09-21 08:15:33 +05:30
unbound_script.rs Inline API functions (#1078) 2022-09-21 08:15:33 +05:30
V8.rs refactor: migrate from lazy_static to once_cell (#1210) 2023-04-21 15:01:27 +05:30
value.rs chore: update to Rust 1.70.0 (#1277) 2023-07-11 12:50:03 -06:00
value_deserializer.rs chore: update Rust to 1.65.0 (#1116) 2022-11-25 14:32:52 +01:00
value_serializer.rs chore: update Rust to 1.65.0 (#1116) 2022-11-25 14:32:52 +01:00
wasm.rs Add WasmMemoryObject::buffer method (#1128) 2022-11-23 21:44:37 +05:30