Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on jsffi #130

Open
keiviv opened this issue May 9, 2022 · 0 comments
Open

Crash on jsffi #130

keiviv opened this issue May 9, 2022 · 0 comments

Comments

@keiviv
Copy link

keiviv commented May 9, 2022

Crashes on load with std/jsffi — including on the example from the official doc:

import std/jsffi

var document {.importc, nodecl.}: JsObject
var console {.importc, nodecl.}: JsObject
proc jq(selector: JsObject): JsObject {.importjs: "$$(#)".}

proc main =
  jq(document).ready(proc() = # <-- Crashes here.
    console.log("Hello nimlsp")
  )
nimsuggest --log nimlsp_crash.nim
fatal.nim(53)            sysFatal
Error: unhandled exception: semcall.nim(235, 18) `nArg != nil`  [AssertionDefect]

Originally issued at nimlsp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant