Sign in to follow this  
Dentoid

Erroneous imports causes crashes

Recommended Posts

I noticed that trying to use an imported function where the specified module in the import statement doesn't exist will result in a crash. This one is no big deal either, but I guess it should give some kind of error instead of crashing. /Anders Stenberg

Share this post


Link to post
Share on other sites
Yup, crash. I can't give much details really (haven't tried reproducing it in a simple test case), but that's what happened. When I corrected the name of the import module (I'd accidentally written it wrong in the import statement, which is how I noticed the error) it worked fine.

Share this post


Link to post
Share on other sites
I've tried to reproduce this crash, but so far I've not been successful. The only thing that happens when I try to do the import from a non-existing module is that the function is not bound and the engine gives a script exception when the function is called.

Could you try to reproduce the problem in a smaller test case and show it to me?

Share this post


Link to post
Share on other sites
I don't really remember my exact setup, sorry... Guess I should've kept it around so I could reproduce it. I might see if it's still there in my current setup if I get around to it. But I guess it's no biggie if you can't even reproduce it. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this