Skip to content

TypeError: Cannot read property 'constructor' of null #153

New issue

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

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

Already on GitHub? # to your account

Closed
felixSchl opened this issue Jul 10, 2018 · 0 comments
Closed

TypeError: Cannot read property 'constructor' of null #153

felixSchl opened this issue Jul 10, 2018 · 0 comments

Comments

@felixSchl
Copy link

felixSchl commented Jul 10, 2018

The following code throws TypeError: Cannot read property 'constructor' of null. If you remove the invincible all works well.

module Test.Main where

import Effect.Aff
import Prelude

import Control.Parallel (parSequence_)
import Effect (Effect)
import Effect.Console (log)

main :: Effect Unit
main = do
  launchAff_ do
    parSequence_
      [ do
          invincible do
            delay $ 100.0 # Milliseconds
      , do
          delay $ 50.0 # Milliseconds
          throwError $ error "hi3"
      ]

The full stack trace:

TypeError: Cannot read property 'constructor' of null
    at Object.isLeft (/home/felix/projects/dn3010/aff-bug-report/output/Effect.Aff/index.js:76:112)
    at join (/home/felix/projects/dn3010/aff-bug-report/output/Effect.Aff/foreign.js:720:16)
    at /home/felix/projects/dn3010/aff-bug-report/output/Effect.Aff/foreign.js:778:19
    at /home/felix/projects/dn3010/aff-bug-report/output/Effect.Aff/foreign.js:669:29
    at runEff (/home/felix/projects/dn3010/aff-bug-report/output/Effect.Aff/foreign.js:80:7)
    at run (/home/felix/projects/dn3010/aff-bug-report/output/Effect.Aff/foreign.js:496:15)
    at /home/felix/projects/dn3010/aff-bug-report/output/Effect.Aff/foreign.js:333:19
    at drain (/home/felix/projects/dn3010/aff-bug-report/output/Effect.Aff/foreign.js:120:9)
    at Object.enqueue (/home/felix/projects/dn3010/aff-bug-report/output/Effect.Aff/foreign.js:141:11)
    at Timeout._onTimeout (/home/felix/projects/dn3010/aff-bug-report/output/Effect.Aff/foreign.js:330:27)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

1 participant