Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 013d226

Browse files
committed
JS: Update comment
1 parent 55d4e7e commit 013d226

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • javascript/ql/lib/semmle/javascript/dataflow/internal

javascript/ql/lib/semmle/javascript/dataflow/internal/Contents.qll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,8 @@ module Public {
254254
/** Gets the singleton content to be accessed. */
255255
Content asSingleton() { this = MkSingletonContent(result) }
256256

257-
/** Gets the property name to be accessed. */
258-
PropertyName asPropertyName() {
259-
// TODO: array indices should be mapped to a ContentSet that also reads from UnknownArrayElement
260-
result = this.asSingleton().asPropertyName()
261-
}
257+
/** Gets the property name to be accessed, provided that this is a singleton content set. */
258+
PropertyName asPropertyName() { result = this.asSingleton().asPropertyName() }
262259

263260
/** Gets the array index to be accessed. */
264261
int asArrayIndex() { result = this.asSingleton().asArrayIndex() }

0 commit comments

Comments
 (0)