CodeQL CI
de4b655ddb
Merge pull request #7327 from asgerf/js/handlebars-more-raw-interpolation
...
Approved by erik-krogh
2021-12-17 14:07:57 +00:00
CodeQL CI
39ec7132af
Merge pull request #7049 from asgerf/js/routing-trees
...
Approved by erik-krogh
2021-12-17 12:26:38 +00:00
Asger Feldthaus
e2c6dd7d56
JS: Recognize {{& ... }} as an XSS sink
2021-12-17 10:31:50 +01:00
Asger Feldthaus
61cc84ba69
JS: Recognize leading/trailing ~ and & in mustache-tags
2021-12-17 10:31:50 +01:00
CodeQL CI
f274f06d9b
Merge pull request #7409 from asgerf/js/track-functions-with-methods
...
Approved by erik-krogh
2021-12-16 09:01:42 +00:00
Asger Feldthaus
53b3581ed0
JS: Add test to stress flow through properties
2021-12-15 17:16:56 +01:00
Asger Feldthaus
995e33158f
JS: Add test for res.locals flow to template
2021-12-15 16:00:19 +01:00
Asger Feldthaus
04bdba85ea
JS: Shift line numbers in test expectations
2021-12-15 16:00:19 +01:00
Erik Krogh Kristensen
de4458346f
Merge pull request #7344 from SZFsir/main
...
JS: Improve inter-procedural type inference for FunctionExpr
2021-12-13 21:58:53 +01:00
Asger Feldthaus
b336c29283
JS: Track functions with methods
2021-12-10 09:38:29 +01:00
Asger Feldthaus
4ef2a5f4f1
JS: Add test
2021-12-10 09:38:29 +01:00
JrXnm
1a1a7413c2
JS: Improv inter-procedural type inference for FunctionExpr
2021-12-10 01:09:49 +08:00
Asger Feldthaus
3dd5d4d7b4
JS: Instantiate for Express and add tests
2021-12-07 10:43:03 +01:00
Erik Krogh Kristensen
fdcc144a98
add test for import assertions
2021-11-29 13:51:28 +01:00
Erik Krogh Kristensen
591aeff906
add TypeScript test for new private field syntax
2021-11-29 13:51:28 +01:00
Erik Krogh Kristensen
19bbe6d276
add JavaScript support for new private fields syntax
2021-11-29 13:51:25 +01:00
Erik Krogh Kristensen
d946802057
add support for type-only import specifiers
2021-11-29 13:49:10 +01:00
Erik Krogh Kristensen
57399b733e
add test for String types as Discriminants
2021-11-29 13:49:10 +01:00
Erik Krogh Kristensen
0e890fd788
add test for the Awaited type
2021-11-29 13:49:10 +01:00
Erik Krogh Kristensen
eef3905c46
update expected output. The TypeScript compiler now emits types in more cases
2021-11-29 13:49:10 +01:00
Erik Krogh Kristensen
08ce03cd93
Merge branch 'main' into explicit-this
2021-11-24 15:24:58 +01:00
Erik Krogh Kristensen
011fc20963
use matches instead of regexpMatch
2021-11-18 15:41:25 +01:00
Erik Krogh Kristensen
0ff36cd083
Merge branch 'main' into explicit-this
2021-11-13 21:01:25 +01:00
Erik Krogh Kristensen
db40ccae81
add explicit this to all member calls
2021-11-01 09:51:15 +01:00
Erik Krogh Kristensen
15c90adec5
remove redundant cast where the type is enforced by an equality comparison
2021-10-28 18:08:20 +02:00
Erik Krogh Kristensen
e75448ebb0
remove redundant inline casts
2021-10-28 16:35:53 +02:00
Erik Krogh Kristensen
a3c55c2aec
use set literal instead of big disjunction of literals
2021-10-26 12:55:25 +02:00
Asger Feldthaus
c8e7df7900
JS: Add test case
2021-10-01 12:02:40 +02:00
Erik Krogh Kristensen
fdbf5f73b1
add JS support for static initializers
2021-09-14 20:40:46 +02:00
Erik Krogh Kristensen
e3ed6c2523
refactor StaticInitializer into it's own class
2021-09-14 20:40:45 +02:00
Erik Krogh Kristensen
ffd51e725f
add getter for static initializer blocks
2021-09-14 20:40:45 +02:00
Erik Krogh Kristensen
9585481d0b
add support for static initializer blocks in TypeScript
2021-09-14 20:40:45 +02:00
Erik Krogh Kristensen
59f15eb4eb
add tests for TypeScript 4.4 types
2021-09-14 20:40:45 +02:00
Chris Smowton
487ebdf173
Add test for Javascript literal with an unpaired surrogate character
2021-09-13 14:02:05 +01:00
Asger Feldthaus
db1de18cc2
JS: Support transitive callback-passing
2021-09-08 13:08:16 +02:00
Asger Feldthaus
7c94dd94e9
JS: Add type-tracking steps through callback args
2021-09-08 13:08:05 +02:00
Asger Feldthaus
1f6df4e70d
JS: Add callback type tracking test
2021-09-08 13:08:04 +02:00
CodeQL CI
5b229e9392
Merge pull request #6574 from asgerf/js/vue-api-graphs
...
Approved by erik-krogh
2021-09-07 05:53:30 -07:00
Erik Krogh Kristensen
b509627113
add tests for connect
2021-08-31 14:23:23 +02:00
Erik Krogh Kristensen
3d6ab81ab8
refactor the tests for connect
2021-08-31 14:23:23 +02:00
Erik Krogh Kristensen
c6399dbdf4
simplify the connect model by reusing NodeJSLib::RouteHandler
2021-08-31 14:23:23 +02:00
Asger Feldthaus
7dd65d8ac6
JS: Clean up taint step definitions
...
These are Unit types and so should be kept private as you can't
use them for anything other than getting all taint steps of a certain
type.
Also factors out accesses to 'this'.
2021-08-31 11:19:06 +02:00
Asger Feldthaus
e4901eda91
JS: Handle .extend called on any component
2021-08-31 11:19:01 +02:00
Asger Feldthaus
2a79817c3b
JS: Add test for "extends"
2021-08-31 11:19:01 +02:00
Asger Feldthaus
4d4443c3cf
JS: Use API graphs in getOption(s)
2021-08-31 11:19:00 +02:00
CodeQL CI
170a069657
Merge pull request #6403 from asgerf/js/handlebars-extraction
...
Approved by erik-krogh
2021-08-25 13:54:52 +01:00
Asger Feldthaus
bac212c610
JS: Fix typo: instantiaton -> instantiation
2021-08-19 14:41:18 +02:00
Asger Feldthaus
7b6485c32a
JS: Rename some test predicates to match class name
2021-08-18 15:36:41 +02:00
Asger Feldthaus
b21071923e
JS: Rename variables to match new class name
2021-08-18 15:36:41 +02:00
Asger Feldthaus
0a98679f74
JS: Rename Vue::Instance to Vue::Component
2021-08-18 15:36:41 +02:00