denoland / roll-your-own-javascript-runtime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Broken on newer versions of deno_core

embedvr opened this issue · comments

I tried to recreate this runtime and was this error.

Error: TypeError: invalid promise id: expected type `v8::data::Integer`, got `v8::data::Value`
    at Object.opAsync (deno:core/01_core.js:229:23)
    at Object.write ([burger:funcs]:19:29)
    at file:///home/embed/IdeaProjects/burger/example.js:1:14

Did a bunch of troubleshooting, although when I cloned this repo and updated deno_core to version 0.158.0 I got the same error

error: TypeError: invalid promise id: expected type `v8::data::Integer`, got `v8::data::Value`
    at Object.opAsync (deno:core/01_core.js:229:23)
    at Object.writeFile ([runjs:runtime.js]:22:19)
    at file:///home/embed/dev/rust/roll-your-own-javascript-runtime/example.js:12:13

not sure what has changed, but it seems to be a problem with ops as it wasn't a problem until then.