You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks to me like the various diffing functions like diffLines each have a singleDiff instance they use, and this is stateful - it has an options property that gets overwritten each time you call the diff method. But the diff method can be asynchronous when used with the callback option. That presumably means (I haven't tested yet; will need to create a test case demonstrating this & add it to the test suite) that if you were to call the same diffing method again before the asynchronous execution kicked off by a previous call had finished, you could modify the options seen by the in-progress previous call and thus affect its result.
The text was updated successfully, but these errors were encountered:
It looks to me like the various diffing functions like
diffLines
each have a singleDiff
instance they use, and this is stateful - it has anoptions
property that gets overwritten each time you call thediff
method. But thediff
method can be asynchronous when used with thecallback
option. That presumably means (I haven't tested yet; will need to create a test case demonstrating this & add it to the test suite) that if you were to call the same diffing method again before the asynchronous execution kicked off by a previous call had finished, you could modify the options seen by the in-progress previous call and thus affect its result.The text was updated successfully, but these errors were encountered: