hackclub/sprig

runtime errors in Sprig do not show the proper information

Opened this issue · 1 comments

input:

function hee() {
  throw new Error('haa')
}

function hoo() {
  hee()
}

function hi() {
  hoo()
}

hi()

output:

Error: haa
    at hee (index.ts:4:9)
    at hoo (index.ts:8:3)
    at hi (index.ts:12:3)
    at anonymous (index.ts:12:1)

every line in the stack trace is off by 2

what's the status of the issue @snoglobe 👀 ?