@@ -3,7 +3,7 @@ private import semmle.javascript.dataflow.InferredTypes
33private import semmle.javascript.dataflow.internal.PreCallGraphStep
44
55/**
6- * Classes and predicates for modelling TaintTracking steps for arrays.
6+ * Classes and predicates for modeling TaintTracking steps for arrays.
77 */
88module ArrayTaintTracking {
99 /**
@@ -88,13 +88,13 @@ module ArrayTaintTracking {
8888}
8989
9090/**
91- * Classes and predicates for modelling data-flow for arrays.
91+ * Classes and predicates for modeling data-flow for arrays.
9292 */
9393private module ArrayDataFlow {
9494 private import DataFlow:: PseudoProperties
9595
9696 /**
97- * A step modelling the creation of an Array using the `Array.from(x)` method.
97+ * A step modeling the creation of an Array using the `Array.from(x)` method.
9898 * The step copies the elements of the argument (set, array, or iterator elements) into the resulting array.
9999 */
100100 private class ArrayFrom extends DataFlow:: SharedFlowStep {
@@ -112,7 +112,7 @@ private module ArrayDataFlow {
112112 }
113113
114114 /**
115- * A step modelling an array copy where the spread operator is used.
115+ * A step modeling an array copy where the spread operator is used.
116116 * The result is essentially array concatenation.
117117 *
118118 * Such a step can occur both with the `push` and `unshift` methods, or when creating a new array.
@@ -260,7 +260,7 @@ private module ArrayDataFlow {
260260 }
261261
262262 /**
263- * A step modelling that `splice` can insert elements into an array.
263+ * A step modeling that `splice` can insert elements into an array.
264264 * For example in `array.splice(i, del, e)`: if `e` is tainted, then so is `array
265265 */
266266 private class ArraySpliceStep extends DataFlow:: SharedFlowStep {
@@ -275,7 +275,7 @@ private module ArrayDataFlow {
275275 }
276276
277277 /**
278- * A step for modelling `concat`.
278+ * A step for modeling `concat`.
279279 * For example in `e = arr1.concat(arr2, arr3)`: if any of the `arr` is tainted, then so is `e`.
280280 */
281281 private class ArrayConcatStep extends DataFlow:: SharedFlowStep {
@@ -290,7 +290,7 @@ private module ArrayDataFlow {
290290 }
291291
292292 /**
293- * A step for modelling that elements from an array `arr` also appear in the result from calling `slice`/`splice`/`filter`.
293+ * A step for modeling that elements from an array `arr` also appear in the result from calling `slice`/`splice`/`filter`.
294294 */
295295 private class ArraySliceStep extends DataFlow:: SharedFlowStep {
296296 override predicate loadStoreStep ( DataFlow:: Node pred , DataFlow:: Node succ , string prop ) {
@@ -304,7 +304,7 @@ private module ArrayDataFlow {
304304 }
305305
306306 /**
307- * A step modelling that elements from an array `arr` are received by calling `find`.
307+ * A step modeling that elements from an array `arr` are received by calling `find`.
308308 */
309309 private class ArrayFindStep extends DataFlow:: SharedFlowStep {
310310 override predicate loadStep ( DataFlow:: Node pred , DataFlow:: Node succ , string prop ) {
@@ -320,7 +320,7 @@ private module ArrayDataFlow {
320320private import ArrayLibraries
321321
322322/**
323- * Classes and predicates modelling various libraries that work on arrays or array-like structures.
323+ * Classes and predicates modeling various libraries that work on arrays or array-like structures.
324324 */
325325private module ArrayLibraries {
326326 private import DataFlow:: PseudoProperties
0 commit comments