nodejs/node

repl: no RegExp side effects

Open

#18,931 建立於 2018年2月22日

在 GitHub 查看
 (4 留言) (0 反應) (1 負責人)JavaScript (117,218 star) (35,535 fork)batch import
help wantedrepl

描述

$ ./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. :-)

貢獻者指南