summaryrefslogtreecommitdiff
path: root/core/ops.rs
diff options
context:
space:
mode:
authorAapo Alasuutari <aapo.alasuutari@gmail.com>2022-09-23 05:55:37 +0300
committerGitHub <noreply@github.com>2022-09-23 08:25:37 +0530
commitb5dfcbbcbe6be8ac0a54e14eb8aeb0557b58f55d (patch)
tree26b70440482be43571898f90c089caef87eaed2e /core/ops.rs
parent1b04ff07823704301817519715e75059dcc6a9a4 (diff)
feat(ops): Fallible fast ops (#15989)
Diffstat (limited to 'core/ops.rs')
-rw-r--r--core/ops.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/ops.rs b/core/ops.rs
index c14fcdd7b..59c55957b 100644
--- a/core/ops.rs
+++ b/core/ops.rs
@@ -1,5 +1,6 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+use crate::error::AnyError;
use crate::gotham_state::GothamState;
use crate::resources::ResourceTable;
use crate::runtime::GetErrorClassFn;
@@ -158,6 +159,7 @@ pub struct OpState {
pub resource_table: ResourceTable,
pub get_error_class_fn: GetErrorClassFn,
pub tracker: OpsTracker,
+ pub last_fast_op_error: Option<AnyError>,
gotham_state: GothamState,
}
@@ -167,6 +169,7 @@ impl OpState {
resource_table: Default::default(),
get_error_class_fn: &|_| "Error",
gotham_state: Default::default(),
+ last_fast_op_error: None,
tracker: OpsTracker::new(ops_count),
}
}