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

newruntime exceptions #11577

Closed
dumjyl opened this issue Jun 24, 2019 · 1 comment

Comments

@dumjyl
Copy link
Contributor

commented Jun 24, 2019

How to use them without a dangling ref error?

Example

proc newError*: owned(ref Exception) {.noinline.} =
  new(result)
raise newError()

# real example that uses raiseOSError
import osproc
var p = startProcess("whatever")

Current Output

[FATAL] dangling references exist
@Araq

This comment has been minimized.

Copy link
Member

commented Jun 25, 2019

Hum they were covered by a test. I wonder what happened.

@Araq Araq closed this in 0a81b03 Jun 26, 2019

narimiran added a commit that referenced this issue Jun 27, 2019

fixes #11577
(cherry picked from commit 0a81b03)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.