mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
add model for sax
This commit is contained in:
@@ -147,3 +147,4 @@ typeInferenceMismatch
|
||||
| tst.js:2:13:2:20 | source() | tst.js:48:10:48:22 | new Buffer(x) |
|
||||
| xml.js:5:18:5:25 | source() | xml.js:8:14:8:17 | text |
|
||||
| xml.js:12:17:12:24 | source() | xml.js:13:14:13:19 | result |
|
||||
| xml.js:23:18:23:25 | source() | xml.js:20:14:20:17 | attr |
|
||||
|
||||
@@ -12,4 +12,14 @@
|
||||
parseString(source(), function (err, result) {
|
||||
sink(result); // NOT OK
|
||||
});
|
||||
|
||||
var sax = require("sax");
|
||||
var parser = sax.parser(strict);
|
||||
|
||||
parser.onattribute = function (attr) {
|
||||
sink(attr); // NOT OK
|
||||
};
|
||||
|
||||
parser.write(source()).close();
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user