Skip to content

Commit 999f22f

Browse files
committed
JS: Fix getOwnOptionsObject
1 parent 9f02ae2 commit 999f22f

File tree

1 file changed

+1
-1
lines changed
  • javascript/ql/lib/semmle/javascript/frameworks

1 file changed

+1
-1
lines changed

javascript/ql/lib/semmle/javascript/frameworks/Vue.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ module Vue {
196196
* Gets the options passed to the Vue object, such as the object literal `{...}` in `new Vue{{...})`
197197
* or the default export of a single-file component.
198198
*/
199-
deprecated DataFlow::Node getOwnOptionsObject() { none() } // overridden in subclasses
199+
deprecated DataFlow::Node getOwnOptionsObject() { result = getOwnOptions().getARhs() }
200200

201201
/**
202202
* Gets the class implementing this Vue component, if any.

0 commit comments

Comments
 (0)