summaryrefslogtreecommitdiff
path: root/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1')
-rw-r--r--external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-4gs.js3
-rw-r--r--external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-6gs.js2
-rw-r--r--external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-1-s.js46
-rw-r--r--external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-1.js35
-rw-r--r--external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-2-s.js46
-rw-r--r--external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-3-s.js47
-rw-r--r--external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-3.js33
-rw-r--r--external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-4-s.js46
-rw-r--r--external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-5-s.js47
-rw-r--r--external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-5.js34
-rw-r--r--external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-6-s.js47
-rw-r--r--external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-7-s.js46
-rw-r--r--external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-8-s.js41
-rw-r--r--external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-9-s.js38
14 files changed, 511 insertions, 0 deletions
diff --git a/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-4gs.js b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-4gs.js
new file mode 100644
index 000000000..da033989e
--- /dev/null
+++ b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-4gs.js
@@ -0,0 +1,3 @@
+"use strict";
+throw NotEarlyError;
+var _15_3_2_1_10_4_fun = new Function('param_1', 'param_2', 'param_1', '"use strict"; return 0;'); \ No newline at end of file
diff --git a/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-6gs.js b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-6gs.js
new file mode 100644
index 000000000..6cfbd932e
--- /dev/null
+++ b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-6gs.js
@@ -0,0 +1,2 @@
+throw NotEarlyError;
+var _15_3_2_1_10_6_fun = new Function('param_1', 'param_2', 'param_1', '"use strict";return 0;'); \ No newline at end of file
diff --git a/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-1-s.js b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-1-s.js
new file mode 100644
index 000000000..de0084a59
--- /dev/null
+++ b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-1-s.js
@@ -0,0 +1,46 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.3.2.1-11-1-s",
+
+path: "TestCases/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-1-s.js",
+
+description: "Duplicate seperate parameter name in Function constructor throws SyntaxError in strict mode",
+
+test: function testcase() {
+ try {
+ Function('a','a','"use strict";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+
+ },
+
+strict:1,
+
+precondition: function prereq() {
+ return fnSupportsStrict();
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-1.js b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-1.js
new file mode 100644
index 000000000..5ea6464ab
--- /dev/null
+++ b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-1.js
@@ -0,0 +1,35 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.3.2.1-11-1",
+
+path: "TestCases/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-1.js",
+
+description: "Duplicate separate parameter name in Function constructor allowed if body not strict",
+
+test: function testcase()
+{
+ Function('a','a','return;');
+ return true;
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-2-s.js b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-2-s.js
new file mode 100644
index 000000000..96acd8460
--- /dev/null
+++ b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-2-s.js
@@ -0,0 +1,46 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.3.2.1-11-2-s",
+
+path: "TestCases/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-2-s.js",
+
+description: "Duplicate seperate parameter name in Function constructor called from strict mode allowed if body not strict",
+
+test: function testcase()
+{
+ "use strict";
+ try {
+ Function('a','a','return;');
+ return true;
+ } catch (e) {
+ return false;
+ }
+ },
+
+strict:1,
+
+precondition: function prereq() {
+ return true;
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-3-s.js b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-3-s.js
new file mode 100644
index 000000000..bac05b2b0
--- /dev/null
+++ b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-3-s.js
@@ -0,0 +1,47 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.3.2.1-11-3-s",
+
+path: "TestCases/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-3-s.js",
+
+description: "Function constructor having a formal parameter named 'eval' throws SyntaxError if function body is strict mode",
+
+test: function testcase() {
+
+
+ try {
+ Function('eval', '"use strict";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+ },
+
+strict:1,
+
+precondition: function prereq() {
+ return fnSupportsStrict();
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-3.js b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-3.js
new file mode 100644
index 000000000..25cc5f6df
--- /dev/null
+++ b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-3.js
@@ -0,0 +1,33 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.3.2.1-11-3",
+
+path: "TestCases/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-3.js",
+
+description: "Function constructor may have a formal parameter named 'eval' if body is not strict mode",
+
+test: function testcase() {
+ Function('eval', 'return;');
+ return true;
+ }
+});
diff --git a/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-4-s.js b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-4-s.js
new file mode 100644
index 000000000..91945989e
--- /dev/null
+++ b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-4-s.js
@@ -0,0 +1,46 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.3.2.1-11-4-s",
+
+path: "TestCases/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-4-s.js",
+
+description: "Function constructor call from strict code with formal parameter named 'eval' does not throws SyntaxError if function body is not strict mode",
+
+test: function testcase() {
+ "use strict";
+ try {
+ Function('eval', 'return;');
+ return true;
+ } catch (e) {
+ return false;
+ }
+
+ },
+
+strict:1,
+
+precondition: function prereq() {
+ return true;
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-5-s.js b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-5-s.js
new file mode 100644
index 000000000..a916e358f
--- /dev/null
+++ b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-5-s.js
@@ -0,0 +1,47 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.3.2.1-11-5-s",
+
+path: "TestCases/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-5-s.js",
+
+description: "Duplicate combined parameter name in Function constructor throws SyntaxError in strict mode",
+
+test: function testcase()
+{
+ try
+ {
+ Function('a,a','"use strict";');
+ return false;
+ }
+ catch (e) {
+ return(e instanceof SyntaxError);
+ }
+ },
+
+strict:1,
+
+precondition: function prereq() {
+ return fnSupportsStrict();
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-5.js b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-5.js
new file mode 100644
index 000000000..37296f419
--- /dev/null
+++ b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-5.js
@@ -0,0 +1,34 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.3.2.1-11-5",
+
+path: "TestCases/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-5.js",
+
+description: "Duplicate combined parameter name in Function constructor allowed if body is not strict",
+
+test: function testcase()
+{
+ Function('a,a','return;');
+ return true;
+ }
+});
diff --git a/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-6-s.js b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-6-s.js
new file mode 100644
index 000000000..b6a09dbae
--- /dev/null
+++ b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-6-s.js
@@ -0,0 +1,47 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.3.2.1-11-6-s",
+
+path: "TestCases/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-6-s.js",
+
+description: "Duplicate combined parameter name allowed in Function constructor called in strict mode if body not strict",
+
+test: function testcase()
+{
+ "use strict";
+ try {
+ Function('a,a','return a;');
+ return true;
+ } catch (e) {
+ return false;
+ }
+
+ },
+
+strict:1,
+
+precondition: function prereq() {
+ return true;
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-7-s.js b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-7-s.js
new file mode 100644
index 000000000..140e5db5a
--- /dev/null
+++ b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-7-s.js
@@ -0,0 +1,46 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.3.2.1-11-7-s",
+
+path: "TestCases/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-7-s.js",
+
+description: "Function constructor call from strict code with formal parameter named arguments does not throws SyntaxError if function body is not strict mode",
+
+test: function testcase() {
+ "use strict";
+ try {
+ Function('arguments', 'return;');
+ return true;
+
+ } catch (e) {
+ return false;
+ }
+ },
+
+strict:1,
+
+precondition: function prereq() {
+ return true;
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-8-s.js b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-8-s.js
new file mode 100644
index 000000000..56ff76c4f
--- /dev/null
+++ b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-8-s.js
@@ -0,0 +1,41 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ES5Harness.registerTest({
+ id: "15.3.2.1-11-8-s",
+
+ path: "TestCases/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-8-s.js",
+
+ description: "Strict Mode - SyntaxError is not thrown if a function is created using a Function constructor that has two identical parameters, which are separated by a unique parameter name and there is no explicit 'use strict' in the function constructor's body",
+
+ test: function testcase() {
+ "use strict";
+
+ var foo = new Function("baz", "qux", "baz", "return 0;");
+ return true;
+
+ },
+
+ strict : 1,
+ precondition: function prereq() {
+ return true;
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-9-s.js b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-9-s.js
new file mode 100644
index 000000000..f47ecedac
--- /dev/null
+++ b/external/contributions/Microsoft/ietc_262modified/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-9-s.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ES5Harness.registerTest({
+ id: "15.3.2.1-11-9-s",
+
+ path: "TestCases/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-11-9-s.js",
+
+ description: "Strict Mode - SyntaxError is thrown if a function is created using the Function constructor that has three identical parameters and there is no explicit 'use strict' in the function constructor's body",
+
+ test: function testcase() {
+ "use strict";
+
+ var foo = new Function("baz", "baz", "baz", "return 0;");
+ return true;
+ },
+ strict : 1,
+ precondition: function prereq() {
+ return true;
+ }
+});