Base 2 load test - Warnings
Warning: reference to undefined property fn.ancestor
Source File: http://www.fu2k.org/alex/javascript/base2/base2.js
Line: 1051
x 72
function _ancestorOf(ancestor, fn) {
// Check if a function is in another function's inheritance chain.
--> while (fn && fn.ancestor != ancestor) fn = fn.ancestor;
return !!fn;
};
+
Warning: reference to undefined property object.extend
Source File: http://www.fu2k.org/alex/javascript/base2/base2.js
Line: 999
x 13
function extend(object, source) { // or extend(object, key, value)
var extend = arguments.callee;
if (object != null) {
if (arguments.length > 2) { // Extending with a key/value pair.
var key = String(source);
var value = arguments[2];
// Object detection.
if (key.charAt(0) == "@") {
return detect(key.slice(1)) ? extend(object, value) : object;
}
// Protect certain objects.
--> if (object.extend == extend && /^(base|extend)$/.test(key)) {
return object;
}
+
fn.ancestor
x 2
+
object.extend
x 2
+
fn.ancestor
x 156
+
Warning: anonymous function does not always return a value
Source File: http://www.fu2k.org/alex/javascript/base2/base2-legacy.js
Line: 78, Column: 2
Source Code:
});
extend(Array, "pop", function() {
if (this.length) {
var i = this[this.length - 1];
this.length--;
return i;
}
});
+
Warning: variable i hides argument
Source File: http://www.fu2k.org/alex/javascript/base2/base2-legacy.js
Line: 98, Column: 92
Source Code:
var a = this.slice(0, i).concat(slice.apply(arguments, [2])).concat(this.slice(i + c)), i = a.length;
extend(Array, "splice", function(i, c) {
var r = c ? this.slice(i, i + c) : [];
--> var a = this.slice(0, i).concat(slice.apply(arguments, [2])).concat(this.slice(i + c)), i = a.length;
this.length = i;
while (i--) this[i] = a[i];
return r;
});
+
Warning: Error.prototype is read-only
Source File: http://www.fu2k.org/alex/javascript/base2/base2-legacy.js
Line: 43
if (!E) Error = function(m) {
this.name = "Error";
this.message = m || "Error";
};
--> if (E) Error.prototype = new E;
if (typeof TypeError == "undefined") {
TypeError = SyntaxError = Error;
}