mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
Several new Sputnik tests included:
if (!strict_mode) { throw new SyntaxError('unspecified case'); } This doesn't work for a few reasons: 1. 'strict_mode' is undefined in the test case exeuction context. That is, the test framework does not force the test case into strict mode 2. The test case code looks like: "use strict"; if (!strict_mode) ... ... Note that 'strict_mode' is not set before being accessed Really the metadata for these test cases should have a "@strict" property added to instruct the test framework *not* to run the test if an implementation doesn't support strict mode.
This commit is contained in:
parent
d848bcad16
commit
7ffad2be3e
@ -11,8 +11,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
if (!strict_mode) { throw new SyntaxError('unspecified case'); }
|
|
||||||
|
|
||||||
{
|
{
|
||||||
function __func(){}
|
function __func(){}
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
if (!strict_mode) { throw new SyntaxError('unspecified case'); }
|
|
||||||
|
|
||||||
if (true) {
|
if (true) {
|
||||||
function __func(){};
|
function __func(){};
|
||||||
} else {
|
} else {
|
||||||
|
@ -11,8 +11,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
if (!strict_mode) { throw new SyntaxError('unspecified case'); }
|
|
||||||
|
|
||||||
do{
|
do{
|
||||||
function __func(){};
|
function __func(){};
|
||||||
} while(0);
|
} while(0);
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
// Converted for Test262 from original Sputnik source
|
// Converted for Test262 from original Sputnik source
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
if (!strict_mode) { throw new SyntaxError('unspecified case'); }
|
|
||||||
|
|
||||||
{
|
{
|
||||||
function __func(){}
|
function __func(){}
|
||||||
}
|
}
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
// Converted for Test262 from original Sputnik source
|
// Converted for Test262 from original Sputnik source
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
if (!strict_mode) { throw new SyntaxError('unspecified case'); }
|
|
||||||
|
|
||||||
if (true) {
|
if (true) {
|
||||||
function __func(){};
|
function __func(){};
|
||||||
} else {
|
} else {
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
// Converted for Test262 from original Sputnik source
|
// Converted for Test262 from original Sputnik source
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
if (!strict_mode) { throw new SyntaxError('unspecified case'); }
|
|
||||||
|
|
||||||
do{
|
do{
|
||||||
function __func(){};
|
function __func(){};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user