Skip to content
This repository was archived by the owner on Jun 23, 2018. It is now read-only.
This repository was archived by the owner on Jun 23, 2018. It is now read-only.

JSRepl tests fail #87

@zwhitchcox

Description

@zwhitchcox

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions