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
Problem: graceful-js/polyfills.js patches process.pwd(), but pwd is called internally by node in several different situations. As a result, code gets traced while runtime is doing its own thing.
Ideal solution: don't trace any code while @dbux/runtime code is running.
NOTE: only guarding read access is helpful but not sufficient.
One of the bugs we had was related to Node@14 executing an instrumented polyfill every time a stacktrace was generated.
hackfix: always disable tracing of graceful-js (for now)
Another possible hackfix: disable tracing of process.cwd somehow
Domiii
changed the title
Tracing certain system polyfills can lead to infinite loops (e.g. process.cwd)
Tracing certain system polyfills can lead to infinite loops or incorrect results (e.g. process.cwd)
Dec 3, 2021
Problem:
graceful-js/polyfills.js
patchesprocess.pwd()
, butpwd
is called internally by node in several different situations. As a result, code gets traced whileruntime
is doing its own thing.@dbux/runtime
code is running.graceful-js
(for now)process.cwd
somehowtracesDisabled
viaCallbackPatcher
Related
The text was updated successfully, but these errors were encountered: