mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Merge remote-tracking branch 'upstream/master' into ExceptionalPromise
This commit is contained in:
@@ -10,6 +10,10 @@
|
||||
| electron.js:39:5:39:6 | bw |
|
||||
| electron.js:40:1:40:7 | foo(bv) |
|
||||
| electron.js:40:5:40:6 | bv |
|
||||
| electron.js:62:7:62:59 | win |
|
||||
| electron.js:62:13:62:59 | new Bro ... 1500 }) |
|
||||
| electron.js:63:3:63:5 | win |
|
||||
| electron.js:65:18:65:20 | win |
|
||||
| electron.ts:3:12:3:13 | bw |
|
||||
| electron.ts:3:40:3:41 | bv |
|
||||
| electron.ts:4:3:4:4 | bw |
|
||||
|
||||
@@ -2,3 +2,5 @@
|
||||
| electron.js:48:23:48:28 | 'pong' | electron.js:58:1:58:36 | ipcRend ... 'ping') |
|
||||
| electron.js:56:27:56:32 | 'ping' | electron.js:42:29:42:31 | arg |
|
||||
| electron.js:58:30:58:35 | 'ping' | electron.js:47:28:47:30 | arg |
|
||||
| electron.js:68:24:68:28 | "foo" | electron.js:67:23:67:25 | foo |
|
||||
| electron.js:69:24:69:28 | "bar" | electron.js:67:46:67:48 | bar |
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
| electron.js:39:1:39:19 | foo(bw).webContents |
|
||||
| electron.js:40:1:40:19 | foo(bv).webContents |
|
||||
| electron.js:65:18:65:32 | win.webContents |
|
||||
| electron.ts:4:3:4:16 | bw.webContents |
|
||||
| electron.ts:5:3:5:16 | bv.webContents |
|
||||
|
||||
@@ -56,3 +56,15 @@ ipcRenderer.on('reply', (event, arg) => {
|
||||
ipcRenderer.send('async', 'ping');
|
||||
|
||||
ipcRenderer.sendSync('sync', 'ping');
|
||||
|
||||
|
||||
(function () {
|
||||
let win = new BrowserWindow({ width: 800, height: 1500 })
|
||||
win.loadURL('http://github.com');
|
||||
|
||||
let contents = win.webContents;
|
||||
|
||||
contents.on("foo", (foo) => {}).on("bar", (bar) => {});
|
||||
contents.emit("foo", "foo");
|
||||
contents.emit("bar", "bar");
|
||||
})();
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
| tst.js:9:23:9:33 | 'FirstData' | tst.js:6:40:6:44 | first |
|
||||
| tst.js:10:24:10:35 | 'SecondData' | tst.js:7:32:7:37 | second |
|
||||
| tst.js:15:24:15:39 | 'OtherFirstData' | tst.js:14:41:14:50 | otherFirst |
|
||||
| tst.js:20:17:20:21 | "foo" | tst.js:19:16:19:18 | foo |
|
||||
| tst.js:21:17:21:21 | "bar" | tst.js:19:39:19:41 | bar |
|
||||
| tst.js:28:17:28:22 | "blab" | tst.js:25:16:25:20 | event |
|
||||
@@ -0,0 +1,8 @@
|
||||
import javascript
|
||||
|
||||
query predicate taintSteps(DataFlow::Node pred, DataFlow::Node succ) {
|
||||
exists(DataFlow::AdditionalFlowStep step |
|
||||
step.step(pred, succ)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
var emitter = require('events').EventEmitter;
|
||||
|
||||
var em = new emitter();
|
||||
|
||||
// Splitting different channels
|
||||
em.addListener('FirstEvent', function (first) {});
|
||||
em.on('SecondEvent', function (second) {});
|
||||
|
||||
em.emit('FirstEvent', 'FirstData');
|
||||
em.emit('SecondEvent', 'SecondData');
|
||||
|
||||
// Splitting different emitters.
|
||||
var em2 = new emitter();
|
||||
em2.addListener('FirstEvent', function (otherFirst) {});
|
||||
em2.emit('FirstEvent', 'OtherFirstData');
|
||||
|
||||
// Chaining.
|
||||
var em3 = new emitter();
|
||||
em3.on("foo", (foo) => {}).on("bar", (bar) => {});
|
||||
em3.emit("foo", "foo");
|
||||
em3.emit("bar", "bar");
|
||||
|
||||
// Returning a value does not work here.
|
||||
var em4 = new emitter();
|
||||
em3.on("bla", (event) => {
|
||||
event.returnValue = "foo"
|
||||
});
|
||||
em3.emit("bla", "blab");
|
||||
Reference in New Issue
Block a user