Fix regression in set-constant scriptlet

Regression from 3417fe3d5d
This commit is contained in:
Raymond Hill 2024-12-09 08:22:21 -05:00
parent 7daa45e49f
commit 2ccb01973e
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -61,7 +61,6 @@ export function validateConstantFn(trusted, raw, extraArgs = {}) {
} else if ( raw.startsWith('{') && raw.endsWith('}') ) {
try { value = safe.JSON_parse(raw).value; } catch(ex) { return; }
}
return raw;
} else {
return;
}