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 d91e6a4 commit ee62706Copy full SHA for ee62706
javascript/ql/src/semmle/javascript/dataflow/Nodes.qll
@@ -157,10 +157,12 @@ class InvokeNode extends DataFlow::SourceNode {
157
* `name` is set to `result`.
158
*/
159
DataFlow::ValueNode getOptionArgument(int i, string name) {
160
- exists(ObjectLiteralNode obj |
161
- obj.flowsTo(getArgument(i)) and
162
- obj.hasPropertyWrite(name, result)
163
- )
+ getOptionsArgument(i).hasPropertyWrite(name, result)
+ }
+
+ pragma[noinline]
164
+ private ObjectLiteralNode getOptionsArgument(int i) {
165
+ result.flowsTo(getArgument(i))
166
}
167
168
/** Gets an abstract value representing possible callees of this call site. */
0 commit comments