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

Restore Error as a workaround.
This commit is contained in:
David Fugate 2011-09-25 12:50:45 -07:00
parent 1e373168c6
commit b144153fe8
1 changed files with 4 additions and 1 deletions

View File

@ -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,