V8 get callee function name

21 views
Skip to first unread message

Asmit Nayak

unread,
May 18, 2023, 9:35:54 PM5/18/23
to v8-dev
Hi,

I am just starting to work on V8. I want to implement a code so that when the '.textContent' method is invoked there is a console log saying "textContent invoked". 

Right now, I have modified the v8_attr.cc file but it prints everytime the textContent is called during rendering and such. How do I limit it so that the log message is invoked only if called by a JS function. I was thinking if I can get the callee function I can use that as an indicator.

Any help is appreciated.

Thanks,
Asmit
Reply all
Reply to author
Forward
0 new messages