mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
38555a6a0f
Reland https://github.com/denoland/deno/pull/16777 The codegen is disabled in async ops and when fallback to slow call is possible (return type is a Result) to avoid hitting this V8 bug: https://github.com/denoland/deno/issues/17159
4 lines
138 B
Rust
4 lines
138 B
Rust
// https://github.com/denoland/deno/issues/16979
|
|
fn op_string_length(string: &str) -> Result<u32, AnyError> {
|
|
Ok(string.len() as u32)
|
|
}
|