chakra-core / chakra-core/ChakraCore

”JsSetObjectBeforeCollectCallback“ No call

Open
#6,813 1 comment 0 reactions 0 assignees View on GitHub
Question
Dominant language
JavaScript
Stars
9.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

I don't know if my process is wrong,
I tried to register the c# class in jscontext,
Then, create the registered class new in JS, and then release it,
It was found that jssetobjectbeforecollectcallback was not called.
My detailed process is shown below:
1:
![image](https://user-images.githubusercontent.com/20411721/166618624-4488bf67-f558-4120-833f-0f87d26a6b15.png)
![image](https://user-images.githubusercontent.com/20411721/166618648-fa1761d9-9eab-44d4-8e7d-9b37c6b61359.png)
![image](https://user-images.githubusercontent.com/20411721/166618668-2b3aac01-8d21-4474-8dc4-347bda4e0735.png)
![image](https://user-images.githubusercontent.com/20411721/166618685-df8f72d4-bc7b-41f5-b78f-f77959466b8a.png)
I found that "collect" was not printed, and the breakpoint was not hit, so it was not executed at all

I'm not sure if there's something wrong with my JS or there's something missing in chakracore's library. I hope you can find the answer here. Thank you very much for your reply below. Thank you very much!!!

My current project is in “https://github.com/527395632/ChakraRuntime”

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.