I wanted to know whether there is a V8 (or Chrome) flag of some sort that will let me add breakpoints on native function calls. I do not mean C++ functions, I mean built in web platform (or ECMAScript) functions. My issue is that I click on a link and suddenly some code is apparently calling document.location.replace("foo") or something and the page redirects (maliciously). In order to find the calling code, I want to set a breakpoint on calling document.location.replace, which is a native web platform function, that is not writable (so I cannot override it with my own function using Object.defineProperty, or use a proxy). (The code is apparently elusive and obfuscated somewhat, so it is not just a search and replace) I tried using the Developer Tools API - debug(function), but it did not break (even when I call it with setTimeout).
A V8 flag (or a Chrome flag) that either lets me break on calling that function, or that overrides the security feature that makes it non-writable, or something like that, would let me see the code that calls it and find the malicious way it does so. So, is there something like that? Thank you! -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.