We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7123735 commit 92d1c84Copy full SHA for 92d1c84
javascript/ql/lib/semmle/javascript/JSON.qll
@@ -54,7 +54,9 @@ class JsonValue extends @json_value, Locatable {
54
int getIntValue() { result = this.(JsonNumber).getValue().toInt() }
55
56
/** If this is a boolean constant, gets its boolean value. */
57
- boolean getBooleanValue() { result.toString() = this.(JsonBoolean).getValue() }
+ boolean getBooleanValue() {
58
+ result.toString() = this.(JsonBoolean).getValue() and result = [true, false]
59
+ }
60
61
override string getAPrimaryQlClass() { result = "JsonValue" }
62
}
0 commit comments