How to identify which script is being worked in
[email protected] Thu, 13 Aug 2020 03:10:54 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm trying to update our current embedded Javascript engine from Spidermonkey 1.8.5 to 76. The issue that I'm currently facing is how to determine which script is being worked in when multiple scripts share the same global object. Previously, we would store some information in the context private data so as to identify the correct script. However, this is now proving unsuitable given that we can only have one context. I was just wondering if there is a straight forward way of determining which script is currently being worked in when a per-instance or per-class function has been called? Thanks Harry