diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-06-13 20:03:10 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-14 02:03:10 +0000 |
commit | ec8e9d4f5bd2c8eed5f086356c1c6dd7c8b40b7f (patch) | |
tree | 2ffda9204901bfb757e8ce6359d1fc6aa2f9964b /core/runtime/mod.rs | |
parent | fd9d6baea311d9b227b130749647a86838ba2ccc (diff) |
chore(core): Refactor runtime and split out tests (#19491)
This is a quick first refactoring to split the tests out of runtime and
move runtime-related code to a top-level runtime module.
There will be a followup to refactor imports a bit, but this is the
major change that will most likely conflict with other work and I want
to merge it early.
Diffstat (limited to 'core/runtime/mod.rs')
-rw-r--r-- | core/runtime/mod.rs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/core/runtime/mod.rs b/core/runtime/mod.rs new file mode 100644 index 000000000..2bd3ea9fe --- /dev/null +++ b/core/runtime/mod.rs @@ -0,0 +1,35 @@ +// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. +mod bindings; +mod jsrealm; +mod jsruntime; +#[doc(hidden)] +pub mod ops; +mod snapshot_util; + +#[cfg(test)] +mod tests; + +pub const V8_WRAPPER_TYPE_INDEX: i32 = 0; +pub const V8_WRAPPER_OBJECT_INDEX: i32 = 1; + +pub(crate) use jsrealm::ContextState; +pub use jsrealm::JsRealm; +pub use jsruntime::CompiledWasmModuleStore; +pub use jsruntime::CrossIsolateStore; +pub(crate) use jsruntime::InitMode; +pub use jsruntime::JsRuntime; +pub use jsruntime::JsRuntimeForSnapshot; +pub use jsruntime::JsRuntimeState; +pub use jsruntime::RuntimeOptions; +pub use jsruntime::RuntimeSnapshotOptions; +pub use jsruntime::SharedArrayBufferStore; +pub use jsruntime::Snapshot; +pub use snapshot_util::create_snapshot; +pub use snapshot_util::get_js_files; +pub use snapshot_util::CreateSnapshotOptions; +pub use snapshot_util::CreateSnapshotOutput; +pub use snapshot_util::FilterFn; +pub(crate) use snapshot_util::SnapshottedData; + +pub use bindings::script_origin; +pub use bindings::throw_type_error; |