@xuda.io/xuda-worker-bundle 1.3.2109 → 1.3.2111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -8298,10 +8298,12 @@ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id,
|
|
|
8298
8298
|
if (!isServer) {
|
|
8299
8299
|
try {
|
|
8300
8300
|
return eval(val);
|
|
8301
|
-
} catch {
|
|
8301
|
+
} catch (err) {
|
|
8302
8302
|
try {
|
|
8303
|
+
if (glb.DEBUG_MODE) console.warning(err);
|
|
8303
8304
|
return JSON5.parse(val);
|
|
8304
|
-
} catch {
|
|
8305
|
+
} catch (err) {
|
|
8306
|
+
if (glb.DEBUG_MODE) console.warning(err);
|
|
8305
8307
|
return val;
|
|
8306
8308
|
}
|
|
8307
8309
|
}
|