replit / prybar

Pry open those interpreters.
GNU General Public License v2.0
253 stars 52 forks source link

About repl used in eval file #58

Open monsterooo opened 4 years ago

monsterooo commented 4 years ago

I used the following code

root@d8e8da54e076:/gocode/src/github.com/replit/prybar# prybar-nodejs -i /home/runner/index.js
Node v8.10.0 on linux
abc
--> s
ReferenceError: s is not defined
--> 
// index.js
var s = "abc";
console.log(s);

The problem is that the variable s cannot be accessed in the repl