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

performMinorGC not implemented #32

Open
ivanperez-keera opened this issue Nov 14, 2015 · 1 comment
Open

performMinorGC not implemented #32

ivanperez-keera opened this issue Nov 14, 2015 · 1 comment

Comments

@ivanperez-keera
Copy link

When I run a program that executes performMinorGC, the following is printed to the console:

index.html uncaught exception in Haskell main thread: ReferenceError: h$performGC is not defined rts.js:8792:7
@hamishmack
Copy link
Member

This is still missing:

import System.Mem

main :: IO ()
main = do
      performMinorGC
      return ()
$ ghcjs --make test4.hs 
[1 of 1] Compiling Main             ( test4.hs, test4.js_o )
Linking test4.jsexe (Main)
$ node test4.jsexe/all.js
uncaught exception in Haskell main thread: ReferenceError: h$performGC is not defined
ReferenceError: h$performGC is not defined
    at h$$ac (/Users/hamish/haskell/issue88/test4.jsexe/all.js:26543:3)
    at h$runThreadSlice (/Users/hamish/haskell/issue88/test4.jsexe/all.js:9599:11)
    at h$runThreadSliceCatch (/Users/hamish/haskell/issue88/test4.jsexe/all.js:9545:12)
    at Object.h$mainLoop (/Users/hamish/haskell/issue88/test4.jsexe/all.js:9538:9)
    at processImmediate [as _immediateCallback] (timers.js:336:15)

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

2 participants