ellie-idb / blocklandjs

BlocklandJS - a implementation of V8 in Blockland. Bad code included.
2 stars 0 forks source link

js_exec does not work in v8 #19

Closed ScarletLovell closed 6 years ago

ScarletLovell commented 6 years ago

V8 can't get the path to the file, as the working directory is not in the blockland directory at all.

ellie-idb commented 6 years ago

Make sure that your CWD is your Blockland folder. (verify this by doing print(uv.misc.cwd());) If the CWD is not your blockland folder, do uv.misc.chdir(“exact path to your blockland directory”); and verify it by printing out the CWD.

ScarletLovell commented 6 years ago

Working dir is set to blockland's directory, I did figure out though that js_exec doesn't work if the file has a number in it's name. Like bob2.js

ellie-idb commented 6 years ago

That’s odd. I’ll look into that. Thanks for the report.