-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repl: fix .load infinite loop caused by shared use of lineEnding RegExp #46742
repl: fix .load infinite loop caused by shared use of lineEnding RegExp #46742
Commits on Feb 27, 2023
-
repl: fix .load infinite loop caused by shared use of lineEnding RegExp
Since the lineEnding Regular Expression is declared on the module scope, recursive invocations of its `[kTtyWrite]` method share one instance of this Regular Expression. Since the state of a RegExp is managed by instance, alternately calling RegExpPrototypeExec with the same RegExp on different strings can lead to the state changing unexpectedly. This is the root cause of this infinite loop bug when calling .load on javascript files of certain shapes.
Configuration menu - View commit details
-
Copy full SHA for 2b0871d - Browse repository at this point
Copy the full SHA 2b0871dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f5c3190 - Browse repository at this point
Copy the full SHA f5c3190View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9010dc - Browse repository at this point
Copy the full SHA a9010dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6797e75 - Browse repository at this point
Copy the full SHA 6797e75View commit details
Commits on Feb 28, 2023
-
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ba29072 - Browse repository at this point
Copy the full SHA ba29072View commit details -
fix: refactor to use module scope instance of RegExp safely for perfo…
…rmance considerations
Configuration menu - View commit details
-
Copy full SHA for ced5097 - Browse repository at this point
Copy the full SHA ced5097View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24a0fb6 - Browse repository at this point
Copy the full SHA 24a0fb6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d002103 - Browse repository at this point
Copy the full SHA d002103View commit details -
chore: make finishing touches on comments
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1cc6e4e - Browse repository at this point
Copy the full SHA 1cc6e4eView commit details
Commits on Mar 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6699359 - Browse repository at this point
Copy the full SHA 6699359View commit details -
Revert "test: fix test failing due to difference in terminal codes"
This reverts commit 6699359.
Configuration menu - View commit details
-
Copy full SHA for d8d6375 - Browse repository at this point
Copy the full SHA d8d6375View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3950542 - Browse repository at this point
Copy the full SHA 3950542View commit details