Commit 6321cba5 authored by Raghav Khanna's avatar Raghav Khanna

codeToEval

parent 35e6b159
......@@ -63,11 +63,15 @@ class App extends React.Component {
})
}
readInputCallBack = (input) => {
console.log(test)
test = "";
}
readInputCallBack = (codeToEval) => {
console.log(test);
if(!EMULATOR_IS_INPUT){
EMULATOR_CONSOLE_READ = window.prompt()
}
eval(codeToEval);
EMULATOR_CONSOLE_READ = "";
EMULATOR_IS_INPUT = false;
};
processWaccCode = async (code) => {
let rsp = await sendWaccCode(code);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment