Create a file tmp.js containing 'a|b'.split('|').forEach(print), then run eshost tmp.js (assuming the existence of eshost-cli). On my machine, at least, this produces output along the lines of
Poking around some, it looks like the problem is that it's attempting to inject the header with a regex which matches '', i.e., it is trying to insert the header between the '' and the .split, which obviously isn't going to work.
Create a file
tmp.js
containing'a|b'.split('|').forEach(print)
, then runeshost tmp.js
(assuming the existence ofeshost-cli
). On my machine, at least, this produces output along the lines ofPoking around some, it looks like the problem is that it's attempting to inject the header with a regex which matches
''
, i.e., it is trying to insert the header between the''
and the.split
, which obviously isn't going to work.