aboutsummaryrefslogtreecommitdiffstats
path: root/external
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
commitb144153fe8e2c07b73646894908acda4d7d857a1 (patch)
treecba92782e7f5daf6a77fb2927f091dcb1f99939c /external
parent1e373168c69eae52cb1dccc3a23a26860e87f0eb (diff)
Opera 11.5 hung ('delete Error' under Strict Mode worked thus corrupting the harness).
Restore Error as a workaround.
Diffstat (limited to 'external')
-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,