We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97530b1 commit 1f921d5Copy full SHA for 1f921d5
core/runtime/tests/misc.rs
@@ -1149,13 +1149,21 @@ async fn generic_in_extension_middleware() {
1149
_ => op,
1150
}
1151
},
1152
+
1153
);
1154
1155
let mut runtime = JsRuntime::new(RuntimeOptions {
1156
extensions: vec![welcome_ext::init::<English>()],
1157
..Default::default()
1158
});
1159
1160
+ {
1161
+ let op_state = runtime.op_state();
1162
+ let mut state = op_state.borrow_mut();
1163
1164
+ state.put(English);
1165
+ }
1166
1167
let value_global = runtime
1168
.execute_script(
1169
"greet.js",
0 commit comments