Skip to content

Commit 9d38a3a

Browse files
committed
JS: Fix QL4QL spell checking errors
1 parent 52dedb6 commit 9d38a3a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

javascript/ql/lib/semmle/javascript/ES2015Modules.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class ImportDeclaration extends Stmt, Import, @import_declaration {
140140
// For compatibility with the non-standard implementation of default imports,
141141
// treat default imports as namespace imports. In cases where it causes ambiguity
142142
// between named exports and the properties of a default-exported object, the caller
143-
// of `getImportedModuleNode()` must check `isDefaultImport()` and correct the behaviour.
143+
// of `getImportedModuleNode()` must check `isDefaultImport()` and correct the behavior.
144144
this.hasOnlyDefaultImport()
145145
)
146146
or

javascript/ql/lib/semmle/javascript/Modules.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ abstract class Import extends AstNode {
198198
* For statements of form `import foo from "bar'`, this gives the node corresponding to `foo`.
199199
* Technically this should refer to the export binding named `"default"`, not the whole module, but for compatibility with non-standard
200200
* interpretations of default imports, this node is usually treated as also referring to the whole module.
201-
* If this behaviour is not wanted, use `isDefaultImport()` to handle that case differently.
201+
* If this behavior is not wanted, use `isDefaultImport()` to handle that case differently.
202202
*/
203203
abstract DataFlow::Node getImportedModuleNode();
204204

@@ -207,7 +207,7 @@ abstract class Import extends AstNode {
207207
* as opposed an object whose properties correspond to the export bindings of the imported module.
208208
*
209209
* For compatibility with non-standard interpretations of `default` imports, the default
210-
* import is usually returned by `getImportedModuleNode()`. If such behaviour is not wanted,
210+
* import is usually returned by `getImportedModuleNode()`. If such behavior is not wanted,
211211
* this predicate can be used to handle that case differently.
212212
*
213213
* For example, `getImportedModuleNode()` returns `foo` in both of these imports, but `isDefaultImport()`

0 commit comments

Comments
 (0)