forge icon indicating copy to clipboard operation
forge copied to clipboard

fix: globalScope is undefined when running in JSCore Environment

Open smalldice opened this issue 5 years ago • 1 comments

Hello, An issue came when I use node-forge in JSCore environment, at lib/random.js line 119, globalScope returns undefined, cause globalScope.crypto throw Error "can't read property crypto of undefined", so I changed lib/util.js getScopeFunction to fix this problem

smalldice avatar Sep 25 '20 07:09 smalldice

The same problem at prng.js line 271.

ProgrammerHuang avatar Oct 14 '20 10:10 ProgrammerHuang