Skip to content
Snippets Groups Projects
Commit d403f61b authored by Mark Miller's avatar Mark Miller
Browse files

Regenerating converted files post-merge

parent fc18852c
No related branches found
No related tags found
No related merge requests found
Showing
with 264 additions and 7 deletions
...@@ -11,8 +11,9 @@ ...@@ -11,8 +11,9 @@
* @description Returning number. Declaring a function with "function __func()" * @description Returning number. Declaring a function with "function __func()"
*/ */
var x;
function __func(){ function __func(){
var x = 1; x = 1;
return x; return x;
} }
...@@ -28,7 +29,7 @@ try { ...@@ -28,7 +29,7 @@ try {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
try{ try{
var __x=__func() var __x=__func();
} catch(e){ } catch(e){
$ERROR('#1: var __x=__func() does not lead to throwing exception. Actual: exception is '+e); $ERROR('#1: var __x=__func() does not lead to throwing exception. Actual: exception is '+e);
} }
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
function testcase() { function testcase() {
eval("var test\u2028prop = 66;"); eval("var test7_3_1\u2028prop = 66;");
return prop === 66 && !this.hasOwnProperty("test") && typeof test === "undefined"; return (prop === 66) && ((typeof test7_3_1) === "undefined");
} }
runTestCase(testcase); runTestCase(testcase);
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
function testcase() { function testcase() {
eval("var test\u2029prop = 66;"); eval("var test7_3_2\u2029prop = 66;");
return prop === 66 && !this.hasOwnProperty("test") && typeof test === "undefined"; return (prop===66) && ((typeof test7_3_2) === "undefined");
} }
runTestCase(testcase); runTestCase(testcase);
/**
* @path chapter07/7.6/7.6.1/7.6.1.2-1gs.js
* @strict_only
*/
throw NotEarlyError;
var implements = 1;
/**
* @path chapter07/7.8/7.8.3/7.8.3-1gs.js
* @strict_only
*/
throw NotEarlyError;
var y = 010;
/**
* @path chapter07/7.8/7.8.5/7.8.5-1gs.js
*/
throw NotEarlyError;
var re = //;
/**
* @path chapter07/7.8/7.8.5/7.8.5-2gs.js
*/
var re = new RegExp("");
/**
* @path chapter08/8.7/8.7.2/8.7.2-3-a-1gs.js
* @strict_only
*/
b = 11;
/**
* @path chapter08/8.7/8.7.2/8.7.2-3-a-2gs.js
* @strict_only
*/
throw NotEarlyError;
b = 11;
/**
* @path chapter10/10.1/10.1.1/10.1.1-2gs.js
*/
"use strict"
throw NotEarlyError;
var public = 1;
/**
* @path chapter10/10.1/10.1.1/10.1.1-5gs.js
* @strict_only
*/
throw NotEarlyError;
var public = 1;
/**
* @path chapter10/10.1/10.1.1/10.1.1-8gs.js
* @strict_only
*/
"use strict";
throw NotEarlyError;
var public = 1;
/**
* @path chapter10/10.4/10.4.2/10.4.2.1-1gs.js
* @strict_only
*/
eval("var x = 7;");
x = 9;
throw NotEarlyError;
/// Copyright (c) 2011 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.
/**
* @path chapter10/10.4/10.4.3/10.4.3-1-7-s.js
* @description Strict Mode - checking 'this' (FunctionDeclaration defined within strict mode)
* @strict_only
*/
function testcase() {
"use strict";
function f() {
return typeof this;
}
return f() === "undefined";
}
runTestCase(testcase);
/// Copyright (c) 2011 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.
/**
* @path chapter10/10.4/10.4.3/10.4.3-1-7gs.js
* @strict_only
*/
function f() {
return typeof this;
}
if (f() !== "undefined") {
throw "'this' had incorrect value!";
}
/// Copyright (c) 2011 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.
/**
* @path chapter10/10.4/10.4.3/10.4.3-1-8-s.js
* @description Strict Mode - checking 'this' (FunctionDeclaration includes strict directive prologue)
* @strict_only
*/
function testcase() {
function f() {
"use strict";
return typeof this;
}
return f() === "undefined";
}
runTestCase(testcase);
/// Copyright (c) 2011 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.
/**
* @path chapter10/10.4/10.4.3/10.4.3-1-8gs.js
*/
function f() {
"use strict";
return typeof this;
}
if (f() !== "undefined") {
throw "'this' had incorrect value!";
}
/**
* @path chapter10/10.5/10.5-1gs.js
* @strict_only
*/
throw NotEarlyError;
function f_10_5_1_gs(){
arguments = 7;
}
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
/** /**
* @path chapter10/10.5/10.5-7-b-2-s.js * @path chapter10/10.5/10.5-7-b-2-s.js
* @description Strict Mode - arguments object index assignment is disallowed * @description Strict Mode - arguments object index assignment is allowed
* @strict_only * @strict_only
*/ */
......
/**
* @path chapter10/10.6/10.6-1gs.js
* @strict_only
*/
function f_10_6_1_gs(){
return arguments.callee;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment