summaryrefslogtreecommitdiff
path: root/core/runtime.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-04-30 10:50:24 +0200
committerGitHub <noreply@github.com>2023-04-30 08:50:24 +0000
commitbb1f5e4262940a966e6314f57a4267514911d262 (patch)
tree0b5b870e34fca10daf8e664eb4214e5e756daf53 /core/runtime.rs
parent9c8ebce3dcc784f1a6ecd29d5fe0b3d35256ab82 (diff)
perf(core): async op pseudo-codegen and performance work (#18887)
Performance: ``` async_ops.js: 760k -> 1030k (!) async_ops_deferred.js: 730k -> 770k Deno.serve bench: 118k -> 124k WS test w/ third_party/prebuilt/mac/load_test 100 localhost 8000 0 0: unchanged Startup time: approx 0.5ms slower (13.7 -> 14.2ms) ```
Diffstat (limited to 'core/runtime.rs')
-rw-r--r--core/runtime.rs30
1 files changed, 0 insertions, 30 deletions
diff --git a/core/runtime.rs b/core/runtime.rs
index d88ddccac..e6c365e42 100644
--- a/core/runtime.rs
+++ b/core/runtime.rs
@@ -3738,21 +3738,6 @@ assertEquals(1, notify_return_value);
}
#[test]
- fn test_core_js_stack_frame() {
- let mut runtime = JsRuntime::new(RuntimeOptions::default());
- // Call non-existent op so we get error from `core.js`
- let error = runtime
- .execute_script_static(
- "core_js_stack_frame.js",
- "Deno.core.opAsync('non_existent');",
- )
- .unwrap_err();
- let error_string = error.to_string();
- // Test that the script specifier is a URL: `ext:<repo-relative path>`.
- assert!(error_string.contains("ext:core/01_core.js"));
- }
-
- #[test]
fn test_v8_platform() {
let options = RuntimeOptions {
v8_platform: Some(v8::new_default_platform(0, false).make_shared()),
@@ -4721,21 +4706,6 @@ Deno.core.opAsync("op_async_serialize_object_with_numbers_as_keys", {
.is_ok());
}
- #[test]
- fn test_non_existent_async_op_error() {
- // Verify that "resizable ArrayBuffer" is disabled
- let mut runtime = JsRuntime::new(Default::default());
- let err = runtime
- .execute_script_static(
- "test_rab.js",
- r#"Deno.core.opAsync("this_op_doesnt_exist");"#,
- )
- .unwrap_err();
- assert!(err
- .to_string()
- .contains("this_op_doesnt_exist is not a registered op"));
- }
-
#[tokio::test]
async fn cant_load_internal_module_when_snapshot_is_loaded_and_not_snapshotting(
) {