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

codeToEval

parent 35e6b159
...@@ -63,11 +63,15 @@ class App extends React.Component { ...@@ -63,11 +63,15 @@ class App extends React.Component {
}) })
} }
readInputCallBack = (input) => { readInputCallBack = (codeToEval) => {
console.log(test);
console.log(test) if(!EMULATOR_IS_INPUT){
test = ""; EMULATOR_CONSOLE_READ = window.prompt()
} }
eval(codeToEval);
EMULATOR_CONSOLE_READ = "";
EMULATOR_IS_INPUT = false;
};
processWaccCode = async (code) => { processWaccCode = async (code) => {
let rsp = await sendWaccCode(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