Description
PR #4044 seems to have introduced a regression in the bundler.
As @ozkutuk reported in purescript-contrib/purescript-arraybuffer#34 , in version 0.14.4 purs bundle started eliminating functions from a .js file which are called locally in the .js file at “load time.” (What do we call that time at which the .js file is evaluated? Is it “load time”? I don't know).
Expected behavior
This commit on my fork of purescript introduces a test which I believe should pass if the bundler is working properly.
jamesdbrock@52dd3a5
Instead the test fails with purescript> ReferenceError: localFunction is not defined.
To Reproduce
git clone https://github.com/jamesdbrock/purescript.git
cd purescript
git checkout bundle-function
stack test --test-arguments="--match FunctionDeclaration.purs"
PureScript version
0.14.4
Description
PR #4044 seems to have introduced a regression in the bundler.
As @ozkutuk reported in purescript-contrib/purescript-arraybuffer#34 , in version 0.14.4
purs bundlestarted eliminating functions from a.jsfile which are called locally in the.jsfile at “load time.” (What do we call that time at which the.jsfile is evaluated? Is it “load time”? I don't know).Expected behavior
This commit on my fork of purescript introduces a test which I believe should pass if the bundler is working properly.
jamesdbrock@52dd3a5
Instead the test fails with
purescript> ReferenceError: localFunction is not defined.To Reproduce
PureScript version
0.14.4