summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Fugate <dfugate@microsoft.com>2011-09-25 12:50:45 -0700
committerDavid Fugate <dfugate@microsoft.com>2011-09-25 12:50:45 -0700
commit13eb4c872638ed7a8327902505902fd523259df8 (patch)
treecba92782e7f5daf6a77fb2927f091dcb1f99939c
parent3ee8df14b5241818fda87be09b4f1531bc0148ab (diff)
downloadtest262-13eb4c872638ed7a8327902505902fd523259df8.tar.gz
Opera 11.5 hung ('delete Error' under Strict Mode worked thus corrupting the harness).
Restore Error as a workaround.
-rw-r--r--external/contributions/Microsoft/ietc_262modified/chapter11/11.4/11.4.1/11.4.1-5-a-26-s.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/external/contributions/Microsoft/ietc_262modified/chapter11/11.4/11.4.1/11.4.1-5-a-26-s.js b/external/contributions/Microsoft/ietc_262modified/chapter11/11.4/11.4.1/11.4.1-5-a-26-s.js
index cc5ec0c24..0669faf82 100644
--- a/external/contributions/Microsoft/ietc_262modified/chapter11/11.4/11.4.1/11.4.1-5-a-26-s.js
+++ b/external/contributions/Microsoft/ietc_262modified/chapter11/11.4/11.4.1/11.4.1-5-a-26-s.js
@@ -27,13 +27,16 @@ ES5Harness.registerTest({
test: function testcase() {
"use strict";
-
+ var errorBackup = Error;
try {
eval("delete Error;");
return false;
} catch (e) {
return e instanceof SyntaxError;
+ } finally {
+ Error = errorBackup;
}
+
},
strict: 1,