From b144153fe8e2c07b73646894908acda4d7d857a1 Mon Sep 17 00:00:00 2001 From: David Fugate <dfugate@microsoft.com> Date: Sun, 25 Sep 2011 12:50:45 -0700 Subject: [PATCH] Opera 11.5 hung ('delete Error' under Strict Mode worked thus corrupting the harness). Restore Error as a workaround. --- .../chapter11/11.4/11.4.1/11.4.1-5-a-26-s.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 cc5ec0c24a..0669faf821 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, -- GitLab