Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ext/node): perf_hooks.monitorEventLoopDelay() #26905

Merged
merged 10 commits into from
Nov 19, 2024

Conversation

littledivy
Copy link
Member

@littledivy littledivy commented Nov 17, 2024

Comment on lines +130 to +140
state: Rc<RefCell<OpState>>,
#[serde] args: FfiLoadArgs,
) -> Result<v8::Local<'scope, v8::Value>, DlfcnError>
where
FP: FfiPermissions + 'static,
{
let permissions = state.borrow_mut::<FP>();
let path = permissions.check_partial_with_path(&args.path)?;
let path = {
let mut state = state.borrow_mut();
let permissions = state.borrow_mut::<FP>();
permissions.check_partial_with_path(&args.path)?
};
Copy link
Member Author

@littledivy littledivy Nov 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was holding a mutable OpState borrow across the make_cppgc_object call which borrows again. It panics with latest deno_core version.

@littledivy littledivy merged commit 069bc15 into denoland:main Nov 19, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

calling monitorEventLoopDelay causes Not implemented error
2 participants