0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-27 09:39:14 -05:00
denoland-rusty-v8/tests/compile_fail
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
..
boxed_local.rs chore: rename rusty_v8 to v8 (#803) 2021-10-27 14:32:12 +02:00
boxed_local.stderr chore: update to Rust 1.70.0 (#1277) 2023-07-11 12:50:03 -06:00
handle_scope_escape_lifetime.rs chore: rename rusty_v8 to v8 (#803) 2021-10-27 14:32:12 +02:00
handle_scope_escape_lifetime.stderr chore: update to Rust 1.70.0 (#1277) 2023-07-11 12:50:03 -06:00
handle_scope_escape_to_nowhere.rs chore: rename rusty_v8 to v8 (#803) 2021-10-27 14:32:12 +02:00
handle_scope_escape_to_nowhere.stderr feat: Add {Dis,}allowJavascriptExecutionScope (#862) 2023-07-19 14:52:58 +02:00
handle_scope_lifetime_1.rs chore: rename rusty_v8 to v8 (#803) 2021-10-27 14:32:12 +02:00
handle_scope_lifetime_1.stderr chore: rename rusty_v8 to v8 (#803) 2021-10-27 14:32:12 +02:00
handle_scope_lifetime_2.rs chore: rename rusty_v8 to v8 (#803) 2021-10-27 14:32:12 +02:00
handle_scope_lifetime_2.stderr chore: rename rusty_v8 to v8 (#803) 2021-10-27 14:32:12 +02:00
handle_scope_lifetime_3.rs chore: rename rusty_v8 to v8 (#803) 2021-10-27 14:32:12 +02:00
handle_scope_lifetime_3.stderr chore: rename rusty_v8 to v8 (#803) 2021-10-27 14:32:12 +02:00
handle_scope_lifetime_4.rs chore: rename rusty_v8 to v8 (#803) 2021-10-27 14:32:12 +02:00
handle_scope_lifetime_4.stderr chore: update to Rust 1.70.0 (#1277) 2023-07-11 12:50:03 -06:00
object_without_context_scope.rs chore: rename rusty_v8 to v8 (#803) 2021-10-27 14:32:12 +02:00
object_without_context_scope.stderr chore: update to Rust 1.70.0 (#1277) 2023-07-11 12:50:03 -06:00
try_catch_exception_lifetime.rs chore: rename rusty_v8 to v8 (#803) 2021-10-27 14:32:12 +02:00
try_catch_exception_lifetime.stderr chore: update to Rust 1.70.0 (#1277) 2023-07-11 12:50:03 -06:00
try_catch_message_lifetime.rs chore: rename rusty_v8 to v8 (#803) 2021-10-27 14:32:12 +02:00
try_catch_message_lifetime.stderr chore: update to Rust 1.70.0 (#1277) 2023-07-11 12:50:03 -06:00