semmle-qlci
0e16969e15
Merge pull request #2591 from max-schaefer/js/fix-16
...
Approved by asgerf
2020-01-07 10:36:19 +00:00
semmle-qlci
f48e4bc2a0
Merge pull request #2580 from asger-semmle/typescript-unbounded-recursion
...
Approved by max-schaefer
2020-01-06 14:00:55 +00:00
semmle-qlci
7e9b5b1036
Merge pull request #2590 from asger-semmle/ts-install-deps-unverbose
...
Approved by max-schaefer
2020-01-06 13:57:43 +00:00
Max Schaefer
9391d36699
JavaScript: Teach extractor to tolerate assignment patterns in AST.
...
Our database representation of ASTs does not use assignment patterns, instead encoding the relevant information directly in the associated function/loop/assignment. We convert from an AST with assignment patterns to one without during parsing, so the extractor does not expect any assignment patterns to be present in the AST.
Due to a bug in the parser, this can currently happen for malformed programs. While we should fix that bug once it gets fixed in Acorn, it also makes sense for the extractor to be more robust, so this PR teaches the `ASTExtractor` pass to raise a parse error when it encounters an assignment pattern, and all other passes to simply ignore them.
2020-01-06 11:31:36 +00:00
Asger F
a3481b3713
TS: Do not pass --verbose to yarn
2020-01-06 11:18:58 +00:00
semmle-qlci
dc7863ce29
Merge pull request #2579 from asger-semmle/typescript-trace-resolution
...
Approved by max-schaefer
2020-01-03 12:57:43 +00:00
semmle-qlci
29be46169a
Merge pull request #2576 from asger-semmle/typescript-cyclic-prop-fallthroughnode
...
Approved by max-schaefer
2020-01-03 10:50:05 +00:00
Asger F
36546ce7fe
TS: Print warning when bailing out of symbol type
2020-01-03 10:45:18 +00:00
Asger F
3a4771c29c
TS: Wrap getTypeOfSymbolAtLocation in try/catch
2020-01-02 16:55:17 +00:00
Asger F
202746e92d
TS: Guard getTypeAtLocation with try/catch
2020-01-02 16:31:23 +00:00
Asger F
2ca0e7d232
TS: Disable output from tracing
2020-01-02 15:38:10 +00:00
Asger F
bcf1533e71
TS: Blacklist cyclic property fallthroughFlowNode
2020-01-02 14:13:48 +00:00
Erik Krogh Kristensen
43e9d11f75
inline definition of importIdentifier
2019-12-18 11:43:10 +01:00
Erik Krogh Kristensen
76d4db2552
changes based on review
2019-12-18 11:39:46 +01:00
Erik Krogh Kristensen
4fdfa51e44
add support for import.meta expressions in JavaScript
2019-12-18 10:45:54 +01:00
Asger F
063abb5cbc
TS: Avoid name clash between tsconfig.json and type table
2019-12-11 12:15:44 +00:00
Henning Makholm
e441e432ff
Merge pull request #2484 from asger-semmle/typescript-codeql-env-var
...
JS: Make extractor aware of CodeQL env vars
2019-12-02 18:36:45 +01:00
Asger F
f988e9004f
JS: Autoformat FileExtractor.java
2019-12-02 16:06:37 +00:00
Asger F
c931beb853
TS: Make AutoBuild aware of CodeQL env vars
2019-12-02 16:06:27 +00:00
Jonas Jensen
5b24b1efc3
Merge remote-tracking branch 'upstream/rc/1.23' into mergeback-20191202
...
Conflicts solved:
javascript/extractor/src/com/semmle/js/extractor/Main.java
javascript/ql/test/query-tests/Statements/UseOfReturnlessFunction/tst.js
2019-12-02 09:57:34 +01:00
Asger F
6eb2c26ea4
TS: Pass --no-default-rc and --non-interactive to yarn
2019-11-27 06:42:03 +00:00
Esben Sparre Andreasen
9ffe03bcce
JS: support additional Flow syntax: ... in object types
2019-11-26 15:24:27 +01:00
Asger F
df97ab2cb8
TS: Add INDEX prefix to env variables
2019-11-25 17:10:00 +00:00
Asger F
7e515aeb72
TS: Verify yarn installation
2019-11-25 16:22:21 +00:00
Asger F
b306eeeb6e
TS: Option to install dependencies
2019-11-25 14:42:17 +00:00
Asger F
ec8ced7963
TS: Fix a typos and leftover todo
2019-11-21 15:39:37 +00:00
Asger F
01ab8f07eb
TS: Fix a crash when allowJs: true was set
2019-11-21 15:39:37 +00:00
Asger F
7d558d165a
JS: Update extractor version string
2019-11-21 15:39:37 +00:00
Asger F
dd50d29827
TS: Fix crash in case of missing type roots
2019-11-21 15:39:37 +00:00
Asger F
4a885cbf92
TS: Expose optional parameters at syntax level
2019-11-21 15:39:37 +00:00
Asger F
b6b8213e13
TS: Handle rest parameters in call signatures
2019-11-21 15:39:37 +00:00
Asger F
0c41d6910f
TS: Pass tsconfig options correctly
2019-11-21 15:39:37 +00:00
Asger F
23f8d27447
TS: Simplify debugging
2019-11-21 15:39:37 +00:00
Asger F
e25ee182a0
TS: Extract type alias relation
2019-11-21 15:39:37 +00:00
Asger F
f11dc11ade
TS: Fix type of RHS of TypeAliasDeclaration
2019-11-21 15:39:37 +00:00
Asger F
c02863842c
JS: Raise limit to 1000
2019-11-18 08:33:26 +00:00
Asger F
6f15eff954
JS: Cap length of extracted string
2019-11-17 23:06:47 +00:00
Asger F
37aa85fe81
JS: Fix parsing of non-BMP chars before a quantifier
2019-11-15 09:27:21 +00:00
Asger F
8fcf7a265a
JS: Remove unused OffsetTranslationBuilder class
2019-11-15 09:27:21 +00:00
Asger F
c2e0c8cb39
JS: Do not extract string literal types as regexps
2019-11-15 09:27:20 +00:00
Asger F
57a9cad721
JS: Fix offsets of octal and unicode escape
2019-11-15 09:27:20 +00:00
Asger F
d3302c39c0
JS: Fix offsets in regexes parsed from strings with escapes
2019-11-15 09:27:19 +00:00
Asger F
2901b5e8bd
JS: Add OffsetTranslation table (preserving behavior)
2019-11-15 09:27:19 +00:00
Asger F
c327ee5d4f
JS: Update TRAP
2019-11-15 09:27:19 +00:00
Asger F
68d23bcf8c
JS: Extract surrogate pairs as one constant node
2019-11-15 09:27:19 +00:00
Asger F
6e1c995f2f
JS: Merge consecutive constants in RegExps
2019-11-15 09:27:19 +00:00
Asger F
0e1246c0e5
JS: Extract RegExp ASTs from string literals
2019-11-15 09:27:18 +00:00
Asger F
0cf191f70d
JS: Bump extractor version string
2019-11-15 09:27:18 +00:00
semmle-qlci
67963a5b9d
Merge pull request #2258 from asger-semmle/js-ignore-codesql-databases
...
Approved by esbena
2019-11-14 08:34:23 +00:00
Max Schaefer
d7831d2680
JavaScript: Short-circuit bad-header check on empty files.
2019-11-08 10:30:53 +00:00