Skip to content

Commit 8fdf629

Browse files
author
Max Schaefer
committed
JavaScript: Remove --platform node extractor options.
1 parent 4848372 commit 8fdf629

File tree

5 files changed

+4
-10
lines changed
  • javascript/ql/test
    • query-tests
    • tutorials/Introducing the JavaScript libraries

5 files changed

+4
-10
lines changed

javascript/ql/test/query-tests/NodeJS/DubiousImport/f.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
module.exports = me;
55
}(module));
66

7-
// semmle-extractor-options: --platform
8-
// semmle-extractor-options: node
7+
require("process"); // ensure this is treated as Node.js code
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
import hipsterness from 'react';
22
import curry from 'lodash/function/curry';
3-
4-
//semmle-extractor-options: --platform node

javascript/ql/test/query-tests/Security/CWE-089/untyped/tst4.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@ angular.module('myApp', ['ngRoute'])
77
.controller('FindPost', function($routeParams) {
88
db.get('SELECT * FROM Post WHERE id = "' + $routeParams.id + '"');
99
});
10-
11-
// semmle-extractor-options: --platform node
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// not a syntax error, but still NOT OK
22
return 42;
33

4-
// semmle-extractor-options: --platform
5-
// semmle-extractor-options: node
4+
require("path") // ensure this is treated as Node.js code
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// semmle-extractor-options: --platform
2-
// semmle-extractor-options: node
1+
require("process")
2+
;

0 commit comments

Comments
 (0)