Remove print calls in sm/class

This commit is contained in:
André Bargull 2025-04-30 14:15:59 +02:00 committed by Philip Chimento
parent ba410b8522
commit fc730403e7
4 changed files with 4 additions and 24 deletions

View File

@ -6,15 +6,10 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags: flags:
- noStrict - noStrict
description: | description: |
pending Computed Property Names
esid: pending esid: pending
---*/ ---*/
var BUGNUMBER = 924688;
var summary = 'Computed Property Names';
print(BUGNUMBER + ": " + summary);
var key = "z"; var key = "z";
var { [key]: foo } = { z: "bar" }; var { [key]: foo } = { z: "bar" };
assert.sameValue(foo, "bar"); assert.sameValue(foo, "bar");

View File

@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags: flags:
- noStrict - noStrict
description: | description: |
pending Computed Property Names
esid: pending esid: pending
---*/ ---*/
var BUGNUMBER = 924688;
var summary = 'Computed Property Names';
print(BUGNUMBER + ": " + summary);
// Function definitions. // Function definitions.
function syntaxError (script) { function syntaxError (script) {
@ -249,4 +245,3 @@ obj = {
assert.sameValue(obj.hey, 1); assert.sameValue(obj.hey, 1);
assert.sameValue(obj[4], 2); assert.sameValue(obj[4], 2);
assertThrowsValue(() => { obj.x = 7; }, 3); assertThrowsValue(() => { obj.x = 7; }, 3);

View File

@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags: flags:
- noStrict - noStrict
description: | description: |
pending Method Definitions
esid: pending esid: pending
---*/ ---*/
var BUGNUMBER = 924672;
var summary = 'Method Definitions'
print(BUGNUMBER + ": " + summary);
// Function definitions. // Function definitions.
function syntaxError (script) { function syntaxError (script) {
@ -210,4 +206,3 @@ testStrictMode();
// Tests provided by benvie in the bug to distinguish from ES5 desugar. // Tests provided by benvie in the bug to distinguish from ES5 desugar.
assert.sameValue(({ method() {} }).method.name, "method"); assert.sameValue(({ method() {} }).method.name, "method");
assert.throws(ReferenceError, function() {({ method() { method() } }).method() }); assert.throws(ReferenceError, function() {({ method() { method() } }).method() });

View File

@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
flags: flags:
- noStrict - noStrict
description: | description: |
pending Method Definitions - Generators
esid: pending esid: pending
---*/ ---*/
var BUGNUMBER = 924672;
var summary = 'Method Definitions - Generators'
print(BUGNUMBER + ": " + summary);
// Function definitions. // Function definitions.
function syntaxError (script) { function syntaxError (script) {
@ -89,4 +85,3 @@ assert.sameValue(a.b(1).next().value, 1);
// Generators should not have [[Construct]] // Generators should not have [[Construct]]
a = {*g() { yield 1; }} a = {*g() { yield 1; }}
assert.throws(TypeError, () => { new a.g }); assert.throws(TypeError, () => { new a.g });