mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
var adder = {
|
||||
sum: 0,
|
||||
add: function(x) {
|
||||
this.sum += x;
|
||||
},
|
||||
addAll: function(xs) {
|
||||
xs.forEach(function(x) {
|
||||
this.sum += x;
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
var adder = {
|
||||
sum: 0,
|
||||
add: function(x) {
|
||||
this.sum += x;
|
||||
},
|
||||
addAll: function(xs) {
|
||||
xs.forEach(function(x) {
|
||||
this.sum += x;
|
||||
}, this);
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,12 @@
|
||||
var adder = {
|
||||
sum: 0,
|
||||
add: function(x) {
|
||||
this.sum += x;
|
||||
},
|
||||
addAll: function(xs) {
|
||||
var self = this;
|
||||
xs.forEach(function(x) {
|
||||
self.sum += x;
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
var day = parseInt(form.day.value);
|
||||
@@ -0,0 +1 @@
|
||||
var day = parseInt(form.day.value, 10);
|
||||
Reference in New Issue
Block a user