1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2025-06-13 12:54:17 +00:00

Heavier-handed require detection buster

This commit is contained in:
Joshua May 2016-11-08 17:21:39 +01:00 committed by GitHub
parent fb37ca6bde
commit b8d59009cf

View File

@ -4780,7 +4780,8 @@
if (!cryptoObject) {
try {
cryptoObject = require('cry' + 'pto');
var pto = 'pto';
cryptoObject = require('cry' + pto);
} catch (e) {
// Ignore.
}