mirror of https://github.com/tc39/test262.git
Opera 11.5 hung ('delete Error' under Strict Mode worked thus corrupting the harness).
Restore Error as a workaround.
This commit is contained in:
parent
1e373168c6
commit
b144153fe8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue