rename catch var to "e"

This commit is contained in:
smikes 2014-11-10 16:56:21 -07:00
parent b8ff1ba1bd
commit b4ad0e657e
36 changed files with 108 additions and 108 deletions

View File

@ -47,15 +47,15 @@ try {
obj.verifySetFunction1 = value;
}
});
} catch (e1) {
} catch (e) {
if (!result) {
$ERROR('Expected result to be true, actually ' + result);
}
accessorPropertyAttributesAreCorrect(obj, "property", getFunc, setFunc, "verifySetFunction", false, false);
if (!(e1 instanceof TypeError)) {
$ERROR("Expected TypeError, got " + e1);
if (!(e instanceof TypeError)) {
$ERROR("Expected TypeError, got " + e);
}
}

View File

@ -47,15 +47,15 @@ try {
obj.verifySetFunction1 = value;
}
});
} catch (e1) {
} catch (e) {
if (!result ) {
$ERROR('Expected result to be true, actually ' + result );
}
accessorPropertyAttributesAreCorrect(obj, "0", getFunc, setFunc, "verifySetFunction", false, false);
if (!(e1 instanceof TypeError)) {
$ERROR("Expected TypeError, got " + e1);
if (!(e instanceof TypeError)) {
$ERROR("Expected TypeError, got " + e);
}
}

View File

@ -48,7 +48,7 @@ try {
obj.verifySetFunction1 = value;
}
});
} catch (e1) {
} catch (e) {
if (!result) {
$ERROR('Expected result to be true, actually ' + result);
@ -56,8 +56,8 @@ try {
accessorPropertyAttributesAreCorrect(obj, "property", getFunc, setFunc, "verifySetFunction", false, false);
if (!(e1 instanceof TypeError)) {
$ERROR("Expected TypeError, got " + e1);
if (!(e instanceof TypeError)) {
$ERROR("Expected TypeError, got " + e);
}
}

View File

@ -48,7 +48,7 @@ try {
obj.verifySetFunction1 = value;
}
});
} catch (e1) {
} catch (e) {
if (!result) {
$ERROR('Expected result to be true, actually ' + result);
}
@ -56,8 +56,8 @@ try {
accessorPropertyAttributesAreCorrect(obj, "0", getFunc, setFunc, "verifySetFunction", false, false);
if (!(e1 instanceof TypeError)) {
$ERROR("Expected TypeError, got " + e1);
if (!(e instanceof TypeError)) {
$ERROR("Expected TypeError, got " + e);
}
}

View File

@ -49,15 +49,15 @@ try {
obj.verifySetFunction1 = value;
}
});
} catch (e1) {
} catch (e) {
if (!result ) {
$ERROR('Expected result to be true, actually ' + result );
}
accessorPropertyAttributesAreCorrect(obj, "0", getFunc, setFunc, "verifySetFunction", false, false);
if (!(e1 instanceof TypeError)) {
$ERROR("Expected TypeError, got " + e1);
if (!(e instanceof TypeError)) {
$ERROR("Expected TypeError, got " + e);
}
}

View File

@ -29,11 +29,11 @@ try {
configurable: true
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arr, "1", 3, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -32,11 +32,11 @@ try {
enumerable: true
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arr, "1", 3, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -34,11 +34,11 @@ try {
}
});
} catch (ex) {
} catch (e) {
accessorPropertyAttributesAreCorrect(arr, "1", undefined, set_fun, "setVerifyHelpProp", false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -28,11 +28,11 @@ try {
set: function () { }
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arr, "1", 3, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -31,11 +31,11 @@ try {
writable: true
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arr, "1", undefined, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -33,11 +33,11 @@ try {
value: "abc"
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arr, "1", 3, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -27,11 +27,11 @@ try {
value: -0
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arr, "1", +0, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -28,11 +28,11 @@ try {
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arr, "1", -0, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -29,11 +29,11 @@ try {
value: 36
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arr, "1", 12, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -28,11 +28,11 @@ try {
value: "efgh"
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arr, "1", "abcd", false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -29,11 +29,11 @@ try {
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arr, "1", true, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -31,11 +31,11 @@ try {
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arr, "1", obj1, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -33,11 +33,11 @@ try {
}
});
} catch (ex) {
} catch (e) {
accessorPropertyAttributesAreCorrect(arr, "1", undefined, set_fun, "setVerifyHelpProp", false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -32,11 +32,11 @@ try {
}
});
} catch (ex) {
} catch (e) {
accessorPropertyAttributesAreCorrect(arr, "1", undefined, set_fun, "setVerifyHelpProp", false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -35,11 +35,11 @@ try {
}
});
} catch (ex) {
} catch (e) {
accessorPropertyAttributesAreCorrect(arr, "1", get_fun, undefined, undefined, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -31,11 +31,11 @@ try {
get: undefined
}
});
} catch (ex) {
} catch (e) {
accessorPropertyAttributesAreCorrect(arr, "1", get_fun, undefined, undefined, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -27,11 +27,11 @@ try {
value: 36
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arr, "property", 12, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -27,11 +27,11 @@ try {
writable: true
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arr, "property", undefined, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -28,11 +28,11 @@ try {
enumerable: true
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arr, "property", 12, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -27,11 +27,11 @@ try {
configurable: true
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arr, "property", 12, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -35,11 +35,11 @@ try {
}
}
});
} catch (ex) {
} catch (e) {
accessorPropertyAttributesAreCorrect(arr, "property", get_fun, set_fun, "verifySetFun", false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -30,11 +30,11 @@ try {
set: function () { }
}
});
} catch (ex) {
} catch (e) {
accessorPropertyAttributesAreCorrect(arr, "property", undefined, set_fun, "setVerifyHelpProp", false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -31,11 +31,11 @@ try {
enumerable: true
}
});
} catch (ex) {
} catch (e) {
accessorPropertyAttributesAreCorrect(arr, "property", undefined, set_fun, "setVerifyHelpProp", false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -31,11 +31,11 @@ try {
configurable: true
}
});
} catch (ex) {
} catch (e) {
accessorPropertyAttributesAreCorrect(arr, "property", undefined, set_fun, "setVerifyHelpProp", false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -31,11 +31,11 @@ try {
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arg, "genericProperty", 1001, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -30,11 +30,11 @@ try {
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arg, "genericProperty", undefined, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -30,11 +30,11 @@ try {
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arg, "genericProperty", undefined, false, true, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -29,11 +29,11 @@ try {
}
});
} catch (ex) {
} catch (e) {
dataPropertyAttributesAreCorrect(arg, "genericProperty", undefined, false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -39,11 +39,11 @@ try {
}
});
} catch (ex) {
} catch (e) {
accessorPropertyAttributesAreCorrect(arg, "genericProperty", getFun, setFun, "verifySetFun", false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -35,11 +35,11 @@ try {
}
});
} catch (ex) {
} catch (e) {
accessorPropertyAttributesAreCorrect(arg, "genericProperty", undefined, setFun, "genericPropertyString", false, false, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}

View File

@ -34,11 +34,11 @@ try {
}
});
} catch (ex) {
} catch (e) {
accessorPropertyAttributesAreCorrect(arg, "genericProperty", undefined, setFun, "genericPropertyString", true, false);
if (!(ex instanceof TypeError)) {
$ERROR("Expected TypeError, got " + ex);
if (!(e instanceof TypeError)) {
$ERROR("Epected TypeError, got " + e);
}
}