-
Hi there, I've found that JINT will sometimes fail with a JavaScriptException
I have created a unit test that replicates this failure. The core of the code looks like this:
The above generates the error "a is not defined". I'm having trouble tracking down the offending code (culprit) for the failure. I was thinking of just creating a branch in my fork and creating a PR with that. The PR will obviously fail the CI/CD (built in test pipeline) - but I'd like to see if anyone could give me some pointers on where I could start digging to try to track down the problem. I created a branch here: If you want to test against mainline - you can just copy the only new file I've added which is: into whatever branch you're using locally. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It looks like this might be a symptom of using the JINT engine across multiple threads. When I changed the above setTimeout implementation to be on the main thread - the issue doesn't occur. Just wanted to call that out since I think we can restrict our usage of each Engine to a single thread. |
Beta Was this translation helpful? Give feedback.
It looks like this might be a symptom of using the JINT engine across multiple threads.
When I changed the above setTimeout implementation to be on the main thread - the issue doesn't occur.
Just wanted to call that out since I think we can restrict our usage of each Engine to a single thread.