mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
JS: Deprecate Portals and delete tests
This is a super old attempt at model generation, from before MaD even existed. It's obsolete and just have to be removed.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
*
|
||||
* The API of this library is not stable yet and may change.
|
||||
*/
|
||||
deprecated module;
|
||||
|
||||
import javascript
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +0,0 @@
|
||||
import javascript
|
||||
import semmle.javascript.dataflow.Portals
|
||||
|
||||
from Portal p, boolean escapes
|
||||
select p, p.getAnEntryNode(escapes), escapes
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +0,0 @@
|
||||
import javascript
|
||||
import semmle.javascript.dataflow.Portals
|
||||
|
||||
from Portal p, boolean isRemote
|
||||
select p, p.getAnExitNode(isRemote), isRemote
|
||||
@@ -1,9 +0,0 @@
|
||||
function Promise(exec) {
|
||||
this.exec = exec;
|
||||
}
|
||||
|
||||
Promise.prototype.then = function(fulfilled, rejected) {
|
||||
rejected(null);
|
||||
};
|
||||
|
||||
exports.Promise = Promise;
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"name": "bluebird"
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
var Promise= require('./index').Promise;
|
||||
var p = new Promise();
|
||||
@@ -1,10 +0,0 @@
|
||||
function foo(cb) {
|
||||
cb(foo);
|
||||
return foo;
|
||||
}
|
||||
foo.f00 = foo;
|
||||
|
||||
foo(foo);
|
||||
foo(foo());
|
||||
|
||||
exports.foo = foo;
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"name": "cyclic"
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
module.exports = (x) => x;
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"name": "m1"
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
export function foo(p) {
|
||||
console.log(p.x.y);
|
||||
p.z = "hi";
|
||||
}
|
||||
|
||||
export default class {
|
||||
constructor(name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
m(x) {
|
||||
console.log(x + " " + this.name);
|
||||
}
|
||||
|
||||
static s(y) { return y; }
|
||||
};
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"name": "m2",
|
||||
"main": "main.js"
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
var m1 = require("m1");
|
||||
|
||||
module.exports = function() { console.log(m1("Hello, world!")); };
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"name": "client",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"m1": "*",
|
||||
"m2": "*"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
require(".")();
|
||||
@@ -1,5 +0,0 @@
|
||||
import { foo } from "m2";
|
||||
var o = {
|
||||
y: "?"
|
||||
};
|
||||
foo({ x: o });
|
||||
@@ -1,5 +0,0 @@
|
||||
import A from "m2";
|
||||
A.m("hi");
|
||||
A.s("there");
|
||||
new A("me").m("hi");
|
||||
new A("me").s("there");
|
||||
@@ -1 +0,0 @@
|
||||
exports.foo = function(x) {};
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"name": "m4"
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
const fs = require("fs"),
|
||||
base64 = require("base-64/base64.js");
|
||||
|
||||
module.exports.readBase64 = function (f) {
|
||||
return base64.encode(String(fs.readFileSync(f)));
|
||||
};
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"name": "m5",
|
||||
"dependencies": {
|
||||
"base-64": "*"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user