Remove print calls in sm/eval

This commit is contained in:
André Bargull 2025-04-30 14:16:00 +02:00 committed by Philip Chimento
parent 0aaba81f56
commit 9d5508194a
18 changed files with 18 additions and 262 deletions

View File

@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags:
- noStrict
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
function globalX() { return x; }
@ -209,7 +200,3 @@ assert.sameValue(resultsY.global4, 42);
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, 71);
assert.sameValue(resultsY.global5, 71);
/******************************************************************************/
print("Tests complete!");

View File

@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags:
- noStrict
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
function globalX() { return x; }
@ -211,7 +202,3 @@ assert.sameValue(resultsY.global4, 8);
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, 8);
assert.sameValue(resultsY.global5, 8);
/******************************************************************************/
print("Tests complete!");

View File

@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags:
- noStrict
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
function globalX() { return x; }
@ -209,7 +200,3 @@ assert.sameValue(resultsY.global4, 2);
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, 71);
assert.sameValue(resultsY.global5, 71);
/******************************************************************************/
print("Tests complete!");

View File

@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags:
- noStrict
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
function globalX() { return x; }
@ -211,7 +202,3 @@ assert.sameValue(resultsY.global4, 8);
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, 8);
assert.sameValue(resultsY.global5, 8);
/******************************************************************************/
print("Tests complete!");

View File

@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags:
- noStrict
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
function globalX() { return x; }
@ -213,7 +204,3 @@ assert.sameValue(resultsY.global4, 8);
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, 8);
assert.sameValue(resultsY.global5, 8);
/******************************************************************************/
print("Tests complete!");

View File

@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags:
- noStrict
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
function globalX() { return x; }
@ -215,7 +206,3 @@ assert.sameValue(resultsY.global4, 8);
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, 8);
assert.sameValue(resultsY.global5, 8);
/******************************************************************************/
print("Tests complete!");

View File

@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags:
- noStrict
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
function globalX() { return x; }
@ -213,7 +204,3 @@ assert.sameValue(resultsY.global4, 2);
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, 71);
assert.sameValue(resultsY.global5, 71);
/******************************************************************************/
print("Tests complete!");

View File

@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags:
- noStrict
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
function globalX() { return x; }
@ -215,7 +206,3 @@ assert.sameValue(resultsY.global4, 8);
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, 8);
assert.sameValue(resultsY.global5, 8);
/******************************************************************************/
print("Tests complete!");

View File

@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags:
- noStrict
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
@ -173,7 +164,3 @@ assert.sameValue(resultsY.local4, "ReferenceError");
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, 71);
/******************************************************************************/
print("Tests complete!");

View File

@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags:
- noStrict
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
@ -175,7 +166,3 @@ assert.sameValue(resultsY.local4, 8);
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, 8);
/******************************************************************************/
print("Tests complete!");

View File

@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags:
- noStrict
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
@ -173,7 +164,3 @@ assert.sameValue(resultsY.local4, "ReferenceError");
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, 71);
/******************************************************************************/
print("Tests complete!");

View File

@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags:
- noStrict
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
@ -175,7 +166,3 @@ assert.sameValue(resultsY.local4, 8);
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, 8);
/******************************************************************************/
print("Tests complete!");

View File

@ -8,21 +8,11 @@ flags:
- onlyStrict
includes: [sm/non262.js, sm/non262-shell.js]
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
"use strict";
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
var ev = eval;
@ -175,7 +165,3 @@ assert.sameValue(resultsY.local4, "ReferenceError");
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, "ReferenceError");
/******************************************************************************/
print("Tests complete!");

View File

@ -8,21 +8,11 @@ flags:
- onlyStrict
includes: [sm/non262.js, sm/non262-shell.js]
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
"use strict";
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
var ev = eval;
@ -177,7 +167,3 @@ assert.sameValue(resultsY.local4, "ReferenceError");
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, "ReferenceError");
/******************************************************************************/
print("Tests complete!");

View File

@ -8,21 +8,11 @@ flags:
- onlyStrict
includes: [sm/non262.js, sm/non262-shell.js]
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
"use strict";
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
var ev = eval;
@ -175,7 +165,3 @@ assert.sameValue(resultsY.local4, "ReferenceError");
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, 71);
/******************************************************************************/
print("Tests complete!");

View File

@ -8,21 +8,11 @@ flags:
- onlyStrict
includes: [sm/non262.js, sm/non262-shell.js]
description: |
pending
eval in all its myriad flavors
esid: pending
---*/
"use strict";
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary = "eval in all its myriad flavors";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = 17;
var ev = eval;
@ -177,7 +167,3 @@ assert.sameValue(resultsY.local4, "ReferenceError");
assert.sameValue(resultsY.inner5, 71);
assert.sameValue(resultsY.local5, "ReferenceError");
/******************************************************************************/
print("Tests complete!");

View File

@ -8,24 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags:
- noStrict
description: |
pending
eval via the JSON parser should parse strings containing U+2028/U+2029 (as of <https://tc39.github.io/proposal-json-superset/>, that is)
esid: pending
---*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 657367;
var summary =
"eval via the JSON parser should parse strings containing U+2028/U+2029 " +
"(as of <https://tc39.github.io/proposal-json-superset/>, that is)";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
assert.sameValue(eval('("\u2028")'), "\u2028");
assert.sameValue(eval('("\u2029")'), "\u2029");
/******************************************************************************/
print("Tests complete!");

View File

@ -8,27 +8,10 @@ flags:
- onlyStrict
includes: [sm/non262.js, sm/non262-shell.js]
description: |
pending
Verify that we don't optimize free names to gnames in eval code that's global, when the name refers to a binding introduced by a strict mode eval frame
esid: pending
---*/
"use strict";
//-----------------------------------------------------------------------------
var BUGNUMBER = 514568;
var summary =
"Verify that we don't optimize free names to gnames in eval code that's " +
"global, when the name refers to a binding introduced by a strict mode " +
"eval frame";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var x = "global";
assert.sameValue(eval('var x = "eval"; eval("x")'), "eval");
/******************************************************************************/
print("Tests complete!");