From 8a52d9cc3313e81b0c5fdc4914d665f28baa8dc3 Mon Sep 17 00:00:00 2001 From: Mark Miller <erights@gmail.com> Date: Sun, 25 Sep 2011 10:50:40 -0700 Subject: [PATCH] Fixes https://bugs.ecmascript.org/show_bug.cgi?id=128 --- test/config/excludelist.xml | 1 - .../S15.10.4.1_A5_T5.js | 19 ------------------- 2 files changed, 20 deletions(-) delete mode 100644 test/suite/sputnik/Conformance/15_Native/15.10_RegExp_Objects/15.10.4_The_RegExp_Constructor/S15.10.4.1_A5_T5.js diff --git a/test/config/excludelist.xml b/test/config/excludelist.xml index 24b2299f45..423d540f42 100644 --- a/test/config/excludelist.xml +++ b/test/config/excludelist.xml @@ -132,7 +132,6 @@ <!-- Extension clause --> <test id="S13.0_A5">https://bugs.ecmascript.org/show_bug.cgi?id=133</test> - <test id="S15.10.4.1_A5_T5">https://bugs.ecmascript.org/show_bug.cgi?id=128</test> <test id="S7.8.4_A4.3_T5">https://bugs.ecmascript.org/show_bug.cgi?id=127</test> <test id="S7.8.4_A4.3_T6">https://bugs.ecmascript.org/show_bug.cgi?id=127</test> diff --git a/test/suite/sputnik/Conformance/15_Native/15.10_RegExp_Objects/15.10.4_The_RegExp_Constructor/S15.10.4.1_A5_T5.js b/test/suite/sputnik/Conformance/15_Native/15.10_RegExp_Objects/15.10.4_The_RegExp_Constructor/S15.10.4.1_A5_T5.js deleted file mode 100644 index a9753166dd..0000000000 --- a/test/suite/sputnik/Conformance/15_Native/15.10_RegExp_Objects/15.10.4_The_RegExp_Constructor/S15.10.4.1_A5_T5.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/** -* @name: S15.10.4.1_A5_T5; -* @section: 15.10.4.1; -* @assertion: If F contains any character other than 'g', 'i', or 'm', or if it contains the same one more than once, then throw a SyntaxError exception; -* @description: Checking if using "{toString:function(){return "x";}}" as F leads to throwing the correct exception; -*/ - -//CHECK#1 -try { - $ERROR('#1.1: new RegExp("a|b|[a-b]",{toString:function(){return "x" throw SyntaxError. Actual: ' + (new RegExp("a|b|[a-b]",{toString:function(){return "x"}}))); -} catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("a|b|[a-b]",{toString:function(){return "x" throw SyntaxError. Actual: ' + (e)); - } -} -