mirror of
https://github.com/tc39/test262.git
synced 2025-07-20 12:34:41 +02:00
Remove printBugNumber, inSection, printStatus, and writeHeaderToLog empty functions
This commit is contained in:
parent
e0f3a70c5a
commit
a06e66989b
@ -1,13 +1,7 @@
|
|||||||
/*---
|
/*---
|
||||||
defines: [printBugNumber, inSection, printStatus, writeHeaderToLog,
|
defines: [assertThrownErrorContains, assertThrowsInstanceOfWithMessageCheck, newGlobal, print, assertEq, reportCompare, reportMatch, createIsHTMLDDA, createExternalArrayBuffer]
|
||||||
assertThrownErrorContains, assertThrowsInstanceOfWithMessageCheck, newGlobal, print, assertEq, reportCompare, reportMatch, createIsHTMLDDA, createExternalArrayBuffer]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
function printBugNumber() {}
|
|
||||||
function inSection() {}
|
|
||||||
function printStatus() {}
|
|
||||||
function writeHeaderToLog() {}
|
|
||||||
|
|
||||||
function assertThrownErrorContains(f, substr) {
|
function assertThrownErrorContains(f, substr) {
|
||||||
try {
|
try {
|
||||||
f();
|
f();
|
||||||
|
@ -24,9 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
function add(a, b) { return a + b; }
|
function add(a, b) { return a + b; }
|
||||||
function testreduce(v) { return v == 3 ? "PASS" : "FAIL"; }
|
function testreduce(v) { return v == 3 ? "PASS" : "FAIL"; }
|
||||||
|
|
||||||
|
@ -24,9 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
[].concat(null);
|
[].concat(null);
|
||||||
|
|
||||||
assert.sameValue(expect, actual, summary);
|
assert.sameValue(expect, actual, summary);
|
||||||
|
@ -17,9 +17,6 @@ var summary = 'setting array.length to null should not throw an uncatchable exce
|
|||||||
var actual = 0;
|
var actual = 0;
|
||||||
var expect = 0;
|
var expect = 0;
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
var a = [];
|
var a = [];
|
||||||
a.length = null;
|
a.length = null;
|
||||||
|
|
||||||
|
@ -16,9 +16,6 @@ var summary = 'lambda constructor "method" vs. instanceof';
|
|||||||
var actual;
|
var actual;
|
||||||
var expect;
|
var expect;
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus(summary);
|
|
||||||
|
|
||||||
var Y = {widget: {}};
|
var Y = {widget: {}};
|
||||||
|
|
||||||
Y.widget.DataSource = function () {};
|
Y.widget.DataSource = function () {};
|
||||||
@ -31,5 +28,3 @@ actual = J instanceof Y.widget.DataSource;
|
|||||||
expect = true;
|
expect = true;
|
||||||
|
|
||||||
assert.sameValue(expect, actual, summary);
|
assert.sameValue(expect, actual, summary);
|
||||||
|
|
||||||
printStatus("All tests passed!");
|
|
||||||
|
@ -16,9 +16,6 @@ var summary = 'null-closure property initialiser mis-brands object literal scope
|
|||||||
var actual;
|
var actual;
|
||||||
var expect;
|
var expect;
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus(summary);
|
|
||||||
|
|
||||||
function make(g) {
|
function make(g) {
|
||||||
var o = {f: function(a,b) { return a*b; }, g: g};
|
var o = {f: function(a,b) { return a*b; }, g: g};
|
||||||
return o;
|
return o;
|
||||||
@ -32,5 +29,3 @@ actual = callg(x, 1);
|
|||||||
expect = -callg(y, 1);
|
expect = -callg(y, 1);
|
||||||
|
|
||||||
assert.sameValue(expect, actual, summary);
|
assert.sameValue(expect, actual, summary);
|
||||||
|
|
||||||
printStatus("All tests passed!");
|
|
||||||
|
@ -14,9 +14,6 @@ esid: pending
|
|||||||
var BUGNUMBER = 528082;
|
var BUGNUMBER = 528082;
|
||||||
var summary = 'named function expression function-name-as-upvar slot botch';
|
var summary = 'named function expression function-name-as-upvar slot botch';
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus(summary);
|
|
||||||
|
|
||||||
function f() {
|
function f() {
|
||||||
return function g(a) { return function () { return g; }(); }();
|
return function g(a) { return function () { return g; }(); }();
|
||||||
}
|
}
|
||||||
@ -24,5 +21,3 @@ var actual = typeof f();
|
|||||||
var expect = "function";
|
var expect = "function";
|
||||||
|
|
||||||
assert.sameValue(expect, actual, summary);
|
assert.sameValue(expect, actual, summary);
|
||||||
|
|
||||||
printStatus("All tests passed!");
|
|
||||||
|
@ -14,9 +14,6 @@ esid: pending
|
|||||||
var BUGNUMBER = 533254;
|
var BUGNUMBER = 533254;
|
||||||
var summary = 'init-method late in table-big initialiser screwup';
|
var summary = 'init-method late in table-big initialiser screwup';
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus(summary);
|
|
||||||
|
|
||||||
function f() {
|
function f() {
|
||||||
var proto = {p8:8};
|
var proto = {p8:8};
|
||||||
var obj = {
|
var obj = {
|
||||||
@ -32,5 +29,3 @@ var expect = f(),
|
|||||||
expect += '';
|
expect += '';
|
||||||
actual += '';
|
actual += '';
|
||||||
assert.sameValue(expect, actual, summary);
|
assert.sameValue(expect, actual, summary);
|
||||||
|
|
||||||
printStatus("All tests passed!");
|
|
||||||
|
@ -17,9 +17,6 @@ var summary = 'Allow redeclaration of JSON';
|
|||||||
var actual = '';
|
var actual = '';
|
||||||
var expect = '';
|
var expect = '';
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval('var JSON = "foo";');
|
eval('var JSON = "foo";');
|
||||||
|
@ -12,9 +12,6 @@ esid: pending
|
|||||||
var BUGNUMBER = 1108382;
|
var BUGNUMBER = 1108382;
|
||||||
var summary = 'Remove non-standard flag argument from String.prototype.{search,match,replace}.';
|
var summary = 'Remove non-standard flag argument from String.prototype.{search,match,replace}.';
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
var result = "bbbAa".match("a", "i");
|
var result = "bbbAa".match("a", "i");
|
||||||
assert.sameValue(result.index, 4);
|
assert.sameValue(result.index, 4);
|
||||||
assert.sameValue(result.length, 1);
|
assert.sameValue(result.length, 1);
|
||||||
|
@ -22,9 +22,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus(summary);
|
|
||||||
|
|
||||||
let testAwaitInDefaultExprOfAsyncFunc = (code) => {
|
let testAwaitInDefaultExprOfAsyncFunc = (code) => {
|
||||||
assert.throws(SyntaxError, () => eval(code), "await expression can't be used in parameter");
|
assert.throws(SyntaxError, () => eval(code), "await expression can't be used in parameter");
|
||||||
};
|
};
|
||||||
|
@ -29,9 +29,6 @@ function scope1() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function test() {
|
function test() {
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
// The scope chain in eval should be just scope1() and the global object.
|
// The scope chain in eval should be just scope1() and the global object.
|
||||||
actual = eval('x', scope1());
|
actual = eval('x', scope1());
|
||||||
expect = 0;
|
expect = 0;
|
||||||
|
@ -20,9 +20,6 @@ var actual = "Early failure";
|
|||||||
var expect = "No errors";
|
var expect = "No errors";
|
||||||
|
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus(summary);
|
|
||||||
|
|
||||||
var o = { get p() { return "a"; } };
|
var o = { get p() { return "a"; } };
|
||||||
|
|
||||||
function test1()
|
function test1()
|
||||||
|
@ -71,9 +71,6 @@ function test(sharedMem) {
|
|||||||
return v.buffer;
|
return v.buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus(summary);
|
|
||||||
|
|
||||||
// testConstructor
|
// testConstructor
|
||||||
buffer = bufferize(new Uint8Array([1, 2]));
|
buffer = bufferize(new Uint8Array([1, 2]));
|
||||||
checkThrow(() => new DataView(buffer, 0, 3), RangeError);
|
checkThrow(() => new DataView(buffer, 0, 3), RangeError);
|
||||||
|
@ -15,8 +15,6 @@ esid: pending
|
|||||||
var BUGNUMBER = 521456;
|
var BUGNUMBER = 521456;
|
||||||
var summary =
|
var summary =
|
||||||
'Incorrect decompilation of new (eval(v)).s and new (f.apply(2)).s';
|
'Incorrect decompilation of new (eval(v)).s and new (f.apply(2)).s';
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus(summary);
|
|
||||||
|
|
||||||
function foo(c) { return new (eval(c)).s; }
|
function foo(c) { return new (eval(c)).s; }
|
||||||
function bar(f) { var a = new (f.apply(2).s); return a; }
|
function bar(f) { var a = new (f.apply(2).s); return a; }
|
||||||
|
@ -17,10 +17,6 @@ var summary = 'Do not assert with JIT: !lhs->isQuad() && !rhs->isQuad()';
|
|||||||
var actual = 'No Crash';
|
var actual = 'No Crash';
|
||||||
var expect = 'No Crash';
|
var expect = 'No Crash';
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
|
|
||||||
const IS_TOKEN_ARRAY =
|
const IS_TOKEN_ARRAY =
|
||||||
[0, 0, 0, 0, 0, 0, 0, 0, // 0
|
[0, 0, 0, 0, 0, 0, 0, 0, // 0
|
||||||
0, 0, 0, 0, 0, 0, 0, 0, // 8
|
0, 0, 0, 0, 0, 0, 0, 0, // 8
|
||||||
|
@ -24,9 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
expect = 'TypeError: [].__proto__ is not a function';
|
expect = 'TypeError: [].__proto__ is not a function';
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,9 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
expect = '12';
|
expect = '12';
|
||||||
|
|
||||||
a = {x: 1};
|
a = {x: 1};
|
||||||
|
@ -24,9 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
expect = '1111222';
|
expect = '1111222';
|
||||||
|
|
||||||
a = {x: 1};
|
a = {x: 1};
|
||||||
|
@ -23,9 +23,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus(summary);
|
|
||||||
|
|
||||||
var TestPassCount = 0;
|
var TestPassCount = 0;
|
||||||
var TestFailCount = 0;
|
var TestFailCount = 0;
|
||||||
var TestTodoCount = 0;
|
var TestTodoCount = 0;
|
||||||
|
@ -25,9 +25,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
var list1 = [[1,2],[3,4],[5,6]];
|
var list1 = [[1,2],[3,4],[5,6]];
|
||||||
var list2 = [[1,2,3],[4,5,6],[7,8,9]];
|
var list2 = [[1,2,3],[4,5,6],[7,8,9]];
|
||||||
|
|
||||||
|
@ -14,9 +14,6 @@ var summary =
|
|||||||
"The token next to yield should be tokenized as non-operand if yield is " +
|
"The token next to yield should be tokenized as non-operand if yield is " +
|
||||||
"a valid name";
|
"a valid name";
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus(summary);
|
|
||||||
|
|
||||||
var yield = 12, a = 3, b = 6, g = 2;
|
var yield = 12, a = 3, b = 6, g = 2;
|
||||||
var yieldParsedAsIdentifier = false;
|
var yieldParsedAsIdentifier = false;
|
||||||
|
|
||||||
|
@ -17,9 +17,6 @@ var summary = 'ES5 Object.keys(O)';
|
|||||||
var actual = '';
|
var actual = '';
|
||||||
var expect = '';
|
var expect = '';
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus(summary);
|
|
||||||
|
|
||||||
function arraysEqual(a1, a2)
|
function arraysEqual(a1, a2)
|
||||||
{
|
{
|
||||||
return a1.length === a2.length &&
|
return a1.length === a2.length &&
|
||||||
@ -96,5 +93,3 @@ if (typeof Namespace !== "undefined" && typeof QName !== "undefined")
|
|||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
assert.sameValue(expect, actual, "Object.keys");
|
assert.sameValue(expect, actual, "Object.keys");
|
||||||
|
|
||||||
printStatus("All tests passed!");
|
|
||||||
|
@ -24,9 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
expect = 'foo';
|
expect = 'foo';
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -31,20 +31,15 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
expect = 'pass';
|
expect = 'pass';
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("function f(){}function g(){}");
|
eval("function f(){}function g(){}");
|
||||||
actual = "pass";
|
actual = "pass";
|
||||||
printStatus('no exception thrown');
|
|
||||||
}
|
}
|
||||||
catch ( e )
|
catch ( e )
|
||||||
{
|
{
|
||||||
actual = "fail";
|
actual = "fail";
|
||||||
printStatus('exception ' + e.toString() + ' thrown');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
assert.sameValue(expect, actual, summary);
|
assert.sameValue(expect, actual, summary);
|
||||||
|
@ -31,8 +31,5 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
assert.sameValue(expect, actual, summary);
|
assert.sameValue(expect, actual, summary);
|
||||||
}
|
}
|
||||||
|
@ -17,9 +17,6 @@ var summary = 'Do not assert: parsing foo getter';
|
|||||||
var actual = 'No Assertion';
|
var actual = 'No Assertion';
|
||||||
var expect = 'No Assertion';
|
var expect = 'No Assertion';
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval('getter\n');
|
eval('getter\n');
|
||||||
|
@ -17,9 +17,6 @@ var summary = 'Do not Assert: c <= cs->length in AddCharacterToCharSet';
|
|||||||
var actual = 'No Crash';
|
var actual = 'No Crash';
|
||||||
var expect = 'No Crash';
|
var expect = 'No Crash';
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
/[\cA]/.exec('\x01');
|
/[\cA]/.exec('\x01');
|
||||||
|
|
||||||
assert.sameValue(expect, actual, summary);
|
assert.sameValue(expect, actual, summary);
|
||||||
|
@ -24,9 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
function f(s) {
|
function f(s) {
|
||||||
return this.eval(s);
|
return this.eval(s);
|
||||||
}
|
}
|
||||||
|
@ -22,9 +22,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
print('Note: You must run this test under valgrind to determine if it passes');
|
print('Note: You must run this test under valgrind to determine if it passes');
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -17,9 +17,6 @@ var summary = 'Do not assert deleting eval 16 times';
|
|||||||
var actual = '';
|
var actual = '';
|
||||||
var expect = '';
|
var expect = '';
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
this.__proto__.x = eval;
|
this.__proto__.x = eval;
|
||||||
for (i = 0; i < 16; ++i) delete eval;
|
for (i = 0; i < 16; ++i) delete eval;
|
||||||
(function w() { x = 1; })();
|
(function w() { x = 1; })();
|
||||||
|
@ -24,9 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
for (i = 0; i < 5;)
|
for (i = 0; i < 5;)
|
||||||
|
@ -17,9 +17,6 @@ var summary = 'Crash with JIT in js_FillPropertyCache';
|
|||||||
var actual = 'No Crash';
|
var actual = 'No Crash';
|
||||||
var expect = 'No Crash';
|
var expect = 'No Crash';
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
|
|
||||||
/************************ BROWSER DETECT (http://www.quirksmode.org/js/detect.html) ************************/
|
/************************ BROWSER DETECT (http://www.quirksmode.org/js/detect.html) ************************/
|
||||||
|
|
||||||
|
@ -24,9 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
var global;
|
var global;
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,9 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
// ------- Comment #51 From Jason Orendorff
|
// ------- Comment #51 From Jason Orendorff
|
||||||
|
|
||||||
// Assertion failure: UPVAR_FRAME_SKIP(uva->vector[i]) == 0
|
// Assertion failure: UPVAR_FRAME_SKIP(uva->vector[i]) == 0
|
||||||
|
@ -24,9 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
// ------- Comment #53 From Jason Orendorff
|
// ------- Comment #53 From Jason Orendorff
|
||||||
|
|
||||||
// Assertion failure: (slot) < (uint32_t)(obj)->dslots[-1]
|
// Assertion failure: (slot) < (uint32_t)(obj)->dslots[-1]
|
||||||
|
@ -24,9 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
// ------- Comment #79 From Jason Orendorff
|
// ------- Comment #79 From Jason Orendorff
|
||||||
|
|
||||||
x; var x; function x() { return 0; }
|
x; var x; function x() { return 0; }
|
||||||
|
@ -24,10 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
|
|
||||||
var m = new Number(3);
|
var m = new Number(3);
|
||||||
function foo() { for (var i=0; i<20;i++) m.toString(); }
|
function foo() { for (var i=0; i<20;i++) m.toString(); }
|
||||||
foo();
|
foo();
|
||||||
|
@ -24,9 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
expect = 'y';
|
expect = 'y';
|
||||||
|
|
||||||
Array.prototype[1] = 'y';
|
Array.prototype[1] = 'y';
|
||||||
|
@ -23,9 +23,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
function f(x) {
|
function f(x) {
|
||||||
var [a, b, [c0, c1]] = [x, x, x];
|
var [a, b, [c0, c1]] = [x, x, x];
|
||||||
}
|
}
|
||||||
|
@ -24,9 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
(function() { var k; eval("for (var k in {});") })()
|
(function() { var k; eval("for (var k in {});") })()
|
||||||
|
|
||||||
assert.sameValue(expect, actual, summary);
|
assert.sameValue(expect, actual, summary);
|
||||||
|
@ -24,9 +24,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
expect = 5;
|
expect = 5;
|
||||||
|
|
||||||
(function(){var x;eval("for (x = 0; x < 5; x++);");print(actual = x);})();
|
(function(){var x;eval("for (x = 0; x < 5; x++);");print(actual = x);})();
|
||||||
|
@ -25,9 +25,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
new (this.prototype = this);
|
new (this.prototype = this);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -23,9 +23,6 @@ test();
|
|||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
expect = 'SyntaxError';
|
expect = 'SyntaxError';
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
/*
|
|
||||||
* Any copyright is dedicated to the Public Domain.
|
|
||||||
* http://creativecommons.org/licenses/publicdomain/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*---
|
|
||||||
includes: [sm/non262.js, sm/non262-shell.js]
|
|
||||||
flags:
|
|
||||||
- noStrict
|
|
||||||
description: |
|
|
||||||
pending
|
|
||||||
esid: pending
|
|
||||||
---*/
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
var BUGNUMBER = 99999;
|
|
||||||
var summary = '';
|
|
||||||
var actual = '';
|
|
||||||
var expect = '';
|
|
||||||
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
test();
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
function test()
|
|
||||||
{
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus (summary);
|
|
||||||
|
|
||||||
assert.sameValue(expect, actual, summary);
|
|
||||||
}
|
|
@ -20,9 +20,6 @@ var actual = "Early failure";
|
|||||||
var expect = "No errors";
|
var expect = "No errors";
|
||||||
|
|
||||||
|
|
||||||
printBugNumber(BUGNUMBER);
|
|
||||||
printStatus(summary);
|
|
||||||
|
|
||||||
var o = { get p() { return "a"; } };
|
var o = { get p() { return "a"; } };
|
||||||
|
|
||||||
function test1()
|
function test1()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user