Headless Chrome REPL not working
Use the binary /opt/google/chrome/chrome directly not google-chrome which points to bash script /usr/bin/google-chrome.
Taken from comments in
https://developers.google.com/web/updates/2017/04/headless-chrome#screenshots
type this
alias chrome=/opt/google/chrome/chrome
then use chrome
chrome --headless --disable-gpu --repl http://google.com