nodejs/node

repl: no RegExp side effects

Open

#18,931 opened on Feb 22, 2018

View on GitHub
 (4 comments) (0 reactions) (1 assignee)JavaScript (117,218 stars) (35,535 forks)batch import
help wantedrepl

Description

$ ./out/Release/node 
> RegExp.$_
'\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000'

Caused by the repl trying to fix up the side effects to RegExp.$1 toRegExp.$9. :-)

Contributor guide