replit-archive/jsrepl

JSRepl tests fail

zwhitchcox opened this issue · 2 comments

I get

should succesfully eval a basic predefined and tested piece of code for scheme
undefined
Uncaught SyntaxError: Unexpected token <
should succesfully eval a basic predefined and tested piece of code for apl
undefined
Uncaught SyntaxError: Unexpected token <
should succesfully eval a basic predefined and tested piece of code for javascript
undefined
Uncaught SyntaxError: Unexpected token <
should succesfully eval a basic predefined and tested piece of code for brainfuck
undefined
Uncaught SyntaxError: Unexpected token <
should succesfully eval a basic predefined and tested piece of code for unlambda
undefined
Uncaught SyntaxError: Unexpected token <
should succesfully eval a basic predefined and tested piece of code for lolcode
undefined
Uncaught SyntaxError: Unexpected token <
should succesfully eval a basic predefined and tested piece of code for kaffeine
undefined
Uncaught SyntaxError: Unexpected token <
should succesfully eval a basic predefined and tested piece of code for move
undefined
Uncaught SyntaxError: Unexpected token <
should succesfully eval a basic predefined and tested piece of code for emoticon
undefined
Uncaught SyntaxError: Unexpected token <
should succesfully eval a basic predefined and tested piece of code for bloop
undefined
Uncaught SyntaxError: Unexpected token <
should succesfully eval a basic predefined and tested piece of code for forth
undefined
Uncaught SyntaxError: Unexpected token <
should succesfully eval a basic predefined and tested piece of code for lua
undefined
Uncaught SyntaxError: Unexpected token <
should succesfully eval a basic predefined and tested piece of code for python
undefined
Uncaught SyntaxError: Unexpected token <
should succesfully eval a basic predefined and tested piece of code for ruby
undefined
Uncaught SyntaxError: Unexpected token <
should succesfully eval a basic predefined and tested piece of code for roy
undefined
Uncaught SyntaxError: Unexpected token <

But the other tests did just fine.

And I get this error

 Uncaught TypeError: Cannot read property 'Eval' of undefined
Uncaught ReferenceError: output is not defined

when with this code:

  1 <script src="jsrepl.js" id="jsrepl-script"></script>
  2 <script>
  3 var jsrepl = new JSREPL({
  4     output: outputCallback,
  5     result: resultCallback,
  6   });
  7 function outputCallback () {
  8 }
  9 function resultCallback(result) {
 10   alert(result)
 11 }
 12 jsrepl.loadLanguage('python', function () {
 13    alert('Python loaded');
 14   });
 15 jsrepl.eval('1+1');
 16 </script>
 17 this is my test

I'm sorry but I just updated the readme with this: we're no longer going to maintain this project because we're moving the language sandboxes to the server. You can use our API that provide a very similar functionality: http://repl.it/api

I'll leave issues open incase someone wants to fork and work on this.

knod commented

I'm just going to put it out there that there is no jsrepl.js in the jsrepl folder. There is only repl.js. Hope that helps someone out there.