Skip to content
Snippets Groups Projects
Commit b144153f authored by David Fugate's avatar David Fugate
Browse files

Opera 11.5 hung ('delete Error' under Strict Mode worked thus corrupting the harness).

Restore Error as a workaround.
parent 1e373168
No related branches found
No related tags found
No related merge requests found
...@@ -27,13 +27,16 @@ ES5Harness.registerTest({ ...@@ -27,13 +27,16 @@ ES5Harness.registerTest({
test: function testcase() { test: function testcase() {
"use strict"; "use strict";
var errorBackup = Error;
try { try {
eval("delete Error;"); eval("delete Error;");
return false; return false;
} catch (e) { } catch (e) {
return e instanceof SyntaxError; return e instanceof SyntaxError;
} finally {
Error = errorBackup;
} }
}, },
strict: 1, strict: 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment