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 seems that with allowJs / checkJs enabled, our own loader hook is called during the loading process. This causes an error where assertScriptCanLoadAsCJSImpl is invoked before it's loaded.
Also, I need to be sure I understand why our tests weren't catching this before. Is it possible that the "ignore" rules have broken? Or is it that the test cases which uncovered this bug are explicitly disabling "ignore" patterns?
The text was updated successfully, but these errors were encountered:
…empting to execute ESM as CJS, even when ESM loader is not loaded (#1232)
* always throw ERR_REQUIRE_ESM when attempting to execute ESM as CJS, even when ESM loader is not loaded
* cleanup
* Fix#1235
* fix bug
assertScriptCanLoadAsCJS()
loadsassertScriptCanLoadAsCJSImpl()
on-demand.It seems that with
allowJs
/checkJs
enabled, our own loader hook is called during the loading process. This causes an error whereassertScriptCanLoadAsCJSImpl
is invoked before it's loaded.Also, I need to be sure I understand why our tests weren't catching this before. Is it possible that the "ignore" rules have broken? Or is it that the test cases which uncovered this bug are explicitly disabling "ignore" patterns?
The text was updated successfully, but these errors were encountered: