hiphop icon indicating copy to clipboard operation
hiphop copied to clipboard

Internal error with trap loop and exit

Open florence opened this issue 6 years ago • 0 comments

The program

hiphop: "require hopscript"
let hh = require("hiphop");=
let prg = <hh.module>
                  <hh.trap T1>
                      <hh.loop>
                         <hh.exit T1/>
                      </hh.loop>
                   </hh.trap>
               </hh.module>;
let machine = new hh.ReactiveMachine(prg, "TEST");

Gives the error:

error: TypeError: toObject: cannot convert "undefined"
    1. \@hopscript, ../install-prefix/hiphop/lib/compiler.js:1607
    2. \@hopscript, ../install-prefix/hiphop/lib/compiler.js:847
    3. \@hopscript, ../install-prefix/hiphop/lib/compiler.js:571
    4. \@\@hopscript, ../install-prefix/hiphop/lib/compiler.js:1690
    5. \@hopscript, ../install-prefix/hiphop/lib/compiler.js:1607
    6. \@hopscript, ../install-prefix/hiphop/lib/compiler.js:1607
    7. \@hopscript, ../install-prefix/hiphop/lib/machine.js:902
    8. \@hopscript, ../install-prefix/hiphop/lib/machine.js:31
    9. hopscript
   10. &pthread-1047, 

florence avatar Oct 01 '19 20:10 florence