Looks like that's a bug in our arc4random support, it needs rand() to be
linked in. Fixed on incoming now.

On Sun, Oct 16, 2016 at 2:13 PM, caiiiycuk <caiiiy...@gmail.com> wrote:

> App crashes at this line:
>   var _rand=undefined;function _arc4random() {
>   return _rand.apply(null, arguments) // THIS LINE
>   }
>
> понедельник, 17 октября 2016 г., 0:11:15 UTC+3 пользователь caiiiycuk
> написал:
>
>> Hi! I compile another big project with emscripten. Looks like all works
>> fine, except _rand function. In emscripten js output i see this code:
>> Line ~7000
>>   var _rand=undefined;function _arc4random() {
>>   return _rand.apply(null, arguments)
>>   }
>>
>> Line ~700000
>> function _rand() {
>> ...
>> }
>>
>> When js app start it calls rand() and it`s works. But app crash at the
>> middle of execution:
>> Uncaught ReferenceError: rand is not defined(…)
>> (anonymous function) @ VM425:1_arc4random
>> ...
>>
>> I don`t understand why _rand is undefined...
>>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to emscripten-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to