mirror of
https://github.com/tc39/test262.git
synced 2025-12-02 03:23:14 +01:00
Remove print calls in sm/misc
This commit is contained in:
parent
3de16a5e94
commit
c92f4924fa
@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
|||||||
flags:
|
flags:
|
||||||
- noStrict
|
- noStrict
|
||||||
description: |
|
description: |
|
||||||
pending
|
ECMAScript built-in methods that immediately throw when |this| is |undefined| or |null| (due to CheckObjectCoercible, ToObject, or ToString)
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
var BUGNUMBER = 619283;
|
|
||||||
var summary =
|
|
||||||
"ECMAScript built-in methods that immediately throw when |this| is " +
|
|
||||||
"|undefined| or |null| (due to CheckObjectCoercible, ToObject, or ToString)";
|
|
||||||
|
|
||||||
print(BUGNUMBER + ": " + summary);
|
|
||||||
|
|
||||||
/**************
|
|
||||||
* BEGIN TEST *
|
|
||||||
**************/
|
|
||||||
|
|
||||||
// We can't just exhaustively loop over everything because 1) method properties
|
// We can't just exhaustively loop over everything because 1) method properties
|
||||||
// might be extensions with special |this| handling, and 2) some methods don't
|
// might be extensions with special |this| handling, and 2) some methods don't
|
||||||
@ -155,7 +144,3 @@ for (var className in ClassToMethodMap)
|
|||||||
testMethod(Class, className, method);
|
testMethod(Class, className, method);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
print("All tests passed!");
|
|
||||||
|
|||||||
@ -8,23 +8,10 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
|||||||
flags:
|
flags:
|
||||||
- noStrict
|
- noStrict
|
||||||
description: |
|
description: |
|
||||||
pending
|
JS_EnumerateStandardClasses uses wrong attributes for undefined
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
var BUGNUMBER = 547087;
|
|
||||||
var summary = 'JS_EnumerateStandardClasses uses wrong attributes for undefined';
|
|
||||||
|
|
||||||
print(BUGNUMBER + ": " + summary);
|
|
||||||
|
|
||||||
/**************
|
|
||||||
* BEGIN TEST *
|
|
||||||
**************/
|
|
||||||
|
|
||||||
for (var p in this);
|
for (var p in this);
|
||||||
|
|
||||||
assert.sameValue(Object.getOwnPropertyDescriptor(this, "undefined").writable, false);
|
assert.sameValue(Object.getOwnPropertyDescriptor(this, "undefined").writable, false);
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
print("All tests passed!");
|
|
||||||
|
|||||||
@ -8,17 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
|||||||
flags:
|
flags:
|
||||||
- noStrict
|
- noStrict
|
||||||
description: |
|
description: |
|
||||||
pending
|
Properly handle explicitly-undefined optional arguments to a bunch of functions
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
var BUGNUMBER = 373118;
|
|
||||||
var summary =
|
|
||||||
'Properly handle explicitly-undefined optional arguments to a bunch of ' +
|
|
||||||
'functions';
|
|
||||||
|
|
||||||
print(BUGNUMBER + ": " + summary);
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
var a;
|
var a;
|
||||||
|
|
||||||
@ -38,6 +30,3 @@ a = [1, 2, 3].sort(undefined);
|
|||||||
assert.sameValue(a.join(), '1,2,3');
|
assert.sameValue(a.join(), '1,2,3');
|
||||||
|
|
||||||
assert.sameValue((20).toString(undefined), '20');
|
assert.sameValue((20).toString(undefined), '20');
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|||||||
@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
|||||||
flags:
|
flags:
|
||||||
- noStrict
|
- noStrict
|
||||||
description: |
|
description: |
|
||||||
pending
|
Implement the ES5 algorithm for processing function statements
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
var BUGNUMBER = 577325;
|
|
||||||
var summary = 'Implement the ES5 algorithm for processing function statements';
|
|
||||||
|
|
||||||
print(BUGNUMBER + ": " + summary);
|
|
||||||
|
|
||||||
/**************
|
|
||||||
* BEGIN TEST *
|
|
||||||
**************/
|
|
||||||
|
|
||||||
var outer, desc;
|
var outer, desc;
|
||||||
var isInShell = !("Window" in this);
|
var isInShell = !("Window" in this);
|
||||||
@ -347,7 +338,3 @@ if (isInShell) {
|
|||||||
assert.sameValue(desc.value, "data8");
|
assert.sameValue(desc.value, "data8");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
print("All tests passed!");
|
|
||||||
|
|||||||
@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
|||||||
flags:
|
flags:
|
||||||
- noStrict
|
- noStrict
|
||||||
description: |
|
description: |
|
||||||
pending
|
Implement FutureReservedWords per-spec
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
var BUGNUMBER = 497869;
|
|
||||||
var summary = "Implement FutureReservedWords per-spec";
|
|
||||||
|
|
||||||
print(BUGNUMBER + ": " + summary);
|
|
||||||
|
|
||||||
/**************
|
|
||||||
* BEGIN TEST *
|
|
||||||
**************/
|
|
||||||
|
|
||||||
var futureReservedWords =
|
var futureReservedWords =
|
||||||
[
|
[
|
||||||
@ -52,7 +43,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
// USE AS LHS FOR ASSIGNMENT
|
// USE AS LHS FOR ASSIGNMENT
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": normal assignment";
|
status = word + ": normal assignment";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval(word + " = 'foo';");
|
eval(word + " = 'foo';");
|
||||||
@ -66,7 +57,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectNormal, status);
|
assert.sameValue(actual, expectNormal, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": strict assignment";
|
status = word + ": strict assignment";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("'use strict'; " + word + " = 'foo';");
|
eval("'use strict'; " + word + " = 'foo';");
|
||||||
@ -82,7 +73,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
// USE AS DESTRUCTURING SHORTHAND
|
// USE AS DESTRUCTURING SHORTHAND
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": destructuring shorthand";
|
status = word + ": destructuring shorthand";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("({ " + word + " } = 'foo');");
|
eval("({ " + word + " } = 'foo');");
|
||||||
@ -96,7 +87,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectNormal, status);
|
assert.sameValue(actual, expectNormal, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": strict destructuring shorthand";
|
status = word + ": strict destructuring shorthand";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("'use strict'; ({ " + word + " } = 'foo');");
|
eval("'use strict'; ({ " + word + " } = 'foo');");
|
||||||
@ -112,7 +103,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
// USE IN VARIABLE DECLARATION
|
// USE IN VARIABLE DECLARATION
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": normal var";
|
status = word + ": normal var";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("var " + word + ";");
|
eval("var " + word + ";");
|
||||||
@ -126,7 +117,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectNormal, status);
|
assert.sameValue(actual, expectNormal, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": strict var";
|
status = word + ": strict var";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("'use strict'; var " + word + ";");
|
eval("'use strict'; var " + word + ";");
|
||||||
@ -142,7 +133,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
// USE IN FOR-IN VARIABLE DECLARATION
|
// USE IN FOR-IN VARIABLE DECLARATION
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": normal for-in var";
|
status = word + ": normal for-in var";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("for (var " + word + " in {});");
|
eval("for (var " + word + " in {});");
|
||||||
@ -156,7 +147,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectNormal, status);
|
assert.sameValue(actual, expectNormal, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": strict for-in var";
|
status = word + ": strict for-in var";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("'use strict'; for (var " + word + " in {});");
|
eval("'use strict'; for (var " + word + " in {});");
|
||||||
@ -172,7 +163,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
// USE AS CATCH IDENTIFIER
|
// USE AS CATCH IDENTIFIER
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": normal var";
|
status = word + ": normal var";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("try { } catch (" + word + ") { }");
|
eval("try { } catch (" + word + ") { }");
|
||||||
@ -186,7 +177,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectNormal, status);
|
assert.sameValue(actual, expectNormal, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": strict var";
|
status = word + ": strict var";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("'use strict'; try { } catch (" + word + ") { }");
|
eval("'use strict'; try { } catch (" + word + ") { }");
|
||||||
@ -202,7 +193,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
// USE AS LABEL
|
// USE AS LABEL
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": normal label";
|
status = word + ": normal label";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval(word + ": while (false);");
|
eval(word + ": while (false);");
|
||||||
@ -216,7 +207,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectNormal, status);
|
assert.sameValue(actual, expectNormal, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": strict label";
|
status = word + ": strict label";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("'use strict'; " + word + ": while (false);");
|
eval("'use strict'; " + word + ": while (false);");
|
||||||
@ -232,7 +223,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
// USE AS ARGUMENT NAME IN FUNCTION DECLARATION
|
// USE AS ARGUMENT NAME IN FUNCTION DECLARATION
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": normal function argument";
|
status = word + ": normal function argument";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("function foo(" + word + ") { }");
|
eval("function foo(" + word + ") { }");
|
||||||
@ -246,7 +237,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectNormal, status);
|
assert.sameValue(actual, expectNormal, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": strict function argument";
|
status = word + ": strict function argument";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("'use strict'; function foo(" + word + ") { }");
|
eval("'use strict'; function foo(" + word + ") { }");
|
||||||
@ -260,7 +251,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectStrict, status);
|
assert.sameValue(actual, expectStrict, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": function argument retroactively strict";
|
status = word + ": function argument retroactively strict";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("function foo(" + word + ") { 'use strict'; }");
|
eval("function foo(" + word + ") { 'use strict'; }");
|
||||||
@ -276,7 +267,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
// USE AS ARGUMENT NAME IN FUNCTION EXPRESSION
|
// USE AS ARGUMENT NAME IN FUNCTION EXPRESSION
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": normal function expression argument";
|
status = word + ": normal function expression argument";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("var s = (function foo(" + word + ") { });");
|
eval("var s = (function foo(" + word + ") { });");
|
||||||
@ -290,7 +281,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectNormal, status);
|
assert.sameValue(actual, expectNormal, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": strict function expression argument";
|
status = word + ": strict function expression argument";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("'use strict'; var s = (function foo(" + word + ") { });");
|
eval("'use strict'; var s = (function foo(" + word + ") { });");
|
||||||
@ -304,7 +295,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectStrict, status);
|
assert.sameValue(actual, expectStrict, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": function expression argument retroactively strict";
|
status = word + ": function expression argument retroactively strict";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("var s = (function foo(" + word + ") { 'use strict'; });");
|
eval("var s = (function foo(" + word + ") { 'use strict'; });");
|
||||||
@ -320,7 +311,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
// USE AS ARGUMENT NAME WITH FUNCTION CONSTRUCTOR
|
// USE AS ARGUMENT NAME WITH FUNCTION CONSTRUCTOR
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": argument with normal Function";
|
status = word + ": argument with normal Function";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Function(word, "return 17");
|
Function(word, "return 17");
|
||||||
@ -334,7 +325,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectNormal, status);
|
assert.sameValue(actual, expectNormal, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": argument with strict Function";
|
status = word + ": argument with strict Function";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Function(word, "'use strict'; return 17");
|
Function(word, "'use strict'; return 17");
|
||||||
@ -350,7 +341,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
// USE AS ARGUMENT NAME IN PROPERTY SETTER
|
// USE AS ARGUMENT NAME IN PROPERTY SETTER
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": normal property setter argument";
|
status = word + ": normal property setter argument";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("var o = { set x(" + word + ") { } };");
|
eval("var o = { set x(" + word + ") { } };");
|
||||||
@ -364,7 +355,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectNormal, status);
|
assert.sameValue(actual, expectNormal, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": strict property setter argument";
|
status = word + ": strict property setter argument";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("'use strict'; var o = { set x(" + word + ") { } };");
|
eval("'use strict'; var o = { set x(" + word + ") { } };");
|
||||||
@ -378,7 +369,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectStrict, status);
|
assert.sameValue(actual, expectStrict, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": property setter argument retroactively strict";
|
status = word + ": property setter argument retroactively strict";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("var o = { set x(" + word + ") { 'use strict'; } };");
|
eval("var o = { set x(" + word + ") { 'use strict'; } };");
|
||||||
@ -394,7 +385,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
// USE AS FUNCTION NAME IN FUNCTION DECLARATION
|
// USE AS FUNCTION NAME IN FUNCTION DECLARATION
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": normal function name";
|
status = word + ": normal function name";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("function " + word + "() { }");
|
eval("function " + word + "() { }");
|
||||||
@ -408,7 +399,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectNormal, status);
|
assert.sameValue(actual, expectNormal, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": strict function name";
|
status = word + ": strict function name";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("'use strict'; function " + word + "() { }");
|
eval("'use strict'; function " + word + "() { }");
|
||||||
@ -422,7 +413,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectStrict, status);
|
assert.sameValue(actual, expectStrict, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": function name retroactively strict";
|
status = word + ": function name retroactively strict";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("function " + word + "() { 'use strict'; }");
|
eval("function " + word + "() { 'use strict'; }");
|
||||||
@ -438,7 +429,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
// USE AS FUNCTION NAME IN FUNCTION EXPRESSION
|
// USE AS FUNCTION NAME IN FUNCTION EXPRESSION
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": normal function expression name";
|
status = word + ": normal function expression name";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("var s = (function " + word + "() { });");
|
eval("var s = (function " + word + "() { });");
|
||||||
@ -452,7 +443,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectNormal, status);
|
assert.sameValue(actual, expectNormal, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": strict function expression name";
|
status = word + ": strict function expression name";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("'use strict'; var s = (function " + word + "() { });");
|
eval("'use strict'; var s = (function " + word + "() { });");
|
||||||
@ -466,7 +457,7 @@ function testWord(word, expectNormal, expectStrict)
|
|||||||
assert.sameValue(actual, expectStrict, status);
|
assert.sameValue(actual, expectStrict, status);
|
||||||
|
|
||||||
actual = "";
|
actual = "";
|
||||||
status = summary + ": " + word + ": function expression name retroactively strict";
|
status = word + ": function expression name retroactively strict";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("var s = (function " + word + "() { 'use strict'; });");
|
eval("var s = (function " + word + "() { 'use strict'; });");
|
||||||
@ -492,7 +483,3 @@ function testStrictFutureReservedWord(word)
|
|||||||
|
|
||||||
futureReservedWords.forEach(testFutureReservedWord);
|
futureReservedWords.forEach(testFutureReservedWord);
|
||||||
strictFutureReservedWords.forEach(testStrictFutureReservedWord);
|
strictFutureReservedWords.forEach(testStrictFutureReservedWord);
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
print("All tests passed!");
|
|
||||||
|
|||||||
@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
|||||||
flags:
|
flags:
|
||||||
- noStrict
|
- noStrict
|
||||||
description: |
|
description: |
|
||||||
pending
|
undefined, Infinity, and NaN global properties should not be writable
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
var BUGNUMBER = 537863;
|
|
||||||
var summary =
|
|
||||||
'undefined, Infinity, and NaN global properties should not be writable';
|
|
||||||
|
|
||||||
print(BUGNUMBER + ": " + summary);
|
|
||||||
|
|
||||||
/**************
|
|
||||||
* BEGIN TEST *
|
|
||||||
**************/
|
|
||||||
|
|
||||||
var desc, old, error;
|
var desc, old, error;
|
||||||
var global = this;
|
var global = this;
|
||||||
@ -59,7 +49,3 @@ for (var i = 0; i < names.length; i++)
|
|||||||
}
|
}
|
||||||
assert.sameValue(error, "typeerror", "wrong strict mode error setting " + name);
|
assert.sameValue(error, "typeerror", "wrong strict mode error setting " + name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
print("All tests passed!");
|
|
||||||
|
|||||||
@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
|||||||
flags:
|
flags:
|
||||||
- noStrict
|
- noStrict
|
||||||
description: |
|
description: |
|
||||||
pending
|
U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR must match the LineTerminator production when parsing code
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
var BUGNUMBER = 663331;
|
|
||||||
var summary =
|
|
||||||
"U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR must match the " +
|
|
||||||
"LineTerminator production when parsing code";
|
|
||||||
|
|
||||||
print(BUGNUMBER + ": " + summary);
|
|
||||||
|
|
||||||
/**************
|
|
||||||
* BEGIN TEST *
|
|
||||||
**************/
|
|
||||||
|
|
||||||
var hidden = 17;
|
var hidden = 17;
|
||||||
var assigned;
|
var assigned;
|
||||||
@ -51,7 +40,3 @@ function t2()
|
|||||||
assert.sameValue(assigned, 5);
|
assert.sameValue(assigned, 5);
|
||||||
}
|
}
|
||||||
t2();
|
t2();
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
print("All tests passed!");
|
|
||||||
|
|||||||
@ -8,23 +8,8 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
|||||||
flags:
|
flags:
|
||||||
- noStrict
|
- noStrict
|
||||||
description: |
|
description: |
|
||||||
pending
|
|var| statements for existing, read-only/permanent properties should not be errors
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
var BUGNUMBER = 539488;
|
|
||||||
var summary =
|
|
||||||
'|var| statements for existing, read-only/permanent properties should not ' +
|
|
||||||
'be errors';
|
|
||||||
|
|
||||||
print(BUGNUMBER + ": " + summary);
|
|
||||||
|
|
||||||
/**************
|
|
||||||
* BEGIN TEST *
|
|
||||||
**************/
|
|
||||||
|
|
||||||
var undefined;
|
var undefined;
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
print("All tests passed!");
|
|
||||||
|
|||||||
@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
|||||||
flags:
|
flags:
|
||||||
- noStrict
|
- noStrict
|
||||||
description: |
|
description: |
|
||||||
pending
|
Syntax errors at the end of |for| statement header parts shouldn't cause crashes
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
var BUGNUMBER = 672854;
|
|
||||||
var summary =
|
|
||||||
"Syntax errors at the end of |for| statement header parts shouldn't cause " +
|
|
||||||
"crashes";
|
|
||||||
|
|
||||||
print(BUGNUMBER + ": " + summary);
|
|
||||||
|
|
||||||
/**************
|
|
||||||
* BEGIN TEST *
|
|
||||||
**************/
|
|
||||||
|
|
||||||
function checkSyntaxError(str)
|
function checkSyntaxError(str)
|
||||||
{
|
{
|
||||||
@ -51,7 +40,3 @@ checkSyntaxError("for(var w; w > 3; 5\\");
|
|||||||
checkSyntaxError("for(w; w > 3; 5\\");
|
checkSyntaxError("for(w; w > 3; 5\\");
|
||||||
checkSyntaxError("for(var w; w > 3; 5foo");
|
checkSyntaxError("for(var w; w > 3; 5foo");
|
||||||
checkSyntaxError("for(w; w > 3; 5foo");
|
checkSyntaxError("for(w; w > 3; 5foo");
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
print("Tests complete!");
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user