Files
codeql/javascript/ql/test/library-tests/JSON/JSONObject.ql
Anders Schack-Mulligen e58094c732 Javascript: Autoformat.
2019-01-11 11:02:42 +01:00

12 lines
291 B
Plaintext

import semmle.javascript.JSON
from JSONObject obj, string prop, JSONValue val, string strval
where
val = obj.getPropValue(prop) and
(
if exists(obj.getPropStringValue(prop))
then strval = obj.getPropStringValue(prop)
else strval = "(none)"
)
select obj, prop, val, strval