From 7a02a5097593a64868dc65c811f9629e7bb7ac1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Wed, 30 Apr 2025 14:16:00 +0200 Subject: [PATCH] Remove print calls in sm/expressions --- test/staging/sm/expressions/11.1.5-01.js | 11 +---------- test/staging/sm/expressions/binary-literals.js | 15 +-------------- .../computed-property-side-effects.js | 18 +----------------- .../constant-folded-labeled-statement.js | 6 +----- .../delete-constant-folded-and-or.js | 17 +---------------- ...me-parenthesized-early-error-strict-mode.js | 17 +---------------- .../destructuring-array-default-call.js | 7 +------ .../destructuring-array-default-class.js | 7 +------ ...tructuring-array-default-function-nested.js | 7 +------ .../destructuring-array-default-function.js | 7 +------ .../destructuring-array-default-simple.js | 7 +------ .../destructuring-array-default-yield.js | 7 +------ .../sm/expressions/destructuring-array-done.js | 7 +------ .../expressions/destructuring-array-lexical.js | 7 +------ .../destructuring-pattern-parenthesized.js | 18 +----------------- .../sm/expressions/named-accessor-function.js | 9 +-------- .../nested-delete-name-in-evalcode.js | 18 +----------------- .../sm/expressions/nullish-coalescing.js | 9 +-------- .../sm/expressions/object-literal-__proto__.js | 17 +---------------- .../object-literal-accessor-arguments.js | 14 +------------- .../object-literal-accessor-property-name.js | 13 +------------ ...ect-literal-computed-property-evaluation.js | 17 +---------------- test/staging/sm/expressions/octal-literals.js | 15 +-------------- .../primitive-this-boxing-behavior.js | 15 +-------------- .../string-literal-escape-sequences.js | 17 +---------------- .../tagged-template-constant-folding.js | 17 +---------------- 26 files changed, 26 insertions(+), 293 deletions(-) diff --git a/test/staging/sm/expressions/11.1.5-01.js b/test/staging/sm/expressions/11.1.5-01.js index c2249fd962..f33082bd47 100644 --- a/test/staging/sm/expressions/11.1.5-01.js +++ b/test/staging/sm/expressions/11.1.5-01.js @@ -8,17 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Implement support for string literals as names for properties defined using ES5 get/set syntax esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 520696; -var summary = - 'Implement support for string literals as names for properties defined ' + - 'using ES5 get/set syntax'; - -print(BUGNUMBER + ": " + summary); - var o; @@ -43,4 +35,3 @@ o = eval('({ 3.141592654: "pi", 1e4: 17, 0xdeadbeef: "hex", 1e3000: "Infinity" } checkO(); o = { 3.141592654: "pi", 1e4: 17, 0xdeadbeef: "hex", 1e3000: "Infinity" }; checkO(); - diff --git a/test/staging/sm/expressions/binary-literals.js b/test/staging/sm/expressions/binary-literals.js index 3cfee207ca..ee889c048d 100644 --- a/test/staging/sm/expressions/binary-literals.js +++ b/test/staging/sm/expressions/binary-literals.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Implement ES6 binary literals esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 894026; -var summary = "Implement ES6 binary literals"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var chars = ['b', 'B']; @@ -116,7 +107,3 @@ function strict() return 0b11010101; } assert.sameValue(strict(), 128 + 64 + 16 + 4 + 1); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/expressions/computed-property-side-effects.js b/test/staging/sm/expressions/computed-property-side-effects.js index 421e0ff4d9..d4c2eaeb3d 100644 --- a/test/staging/sm/expressions/computed-property-side-effects.js +++ b/test/staging/sm/expressions/computed-property-side-effects.js @@ -8,21 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Computed property names must be considered as always effectful even when the name expression isn't effectful, because calling ToPropertyKey on some non-effectful expressions has user-modifiable behavior esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 1199695; -var summary = - "Computed property names must be considered as always effectful even when " + - "the name expression isn't effectful, because calling ToPropertyKey on " + - "some non-effectful expressions has user-modifiable behavior"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ RegExp.prototype.toString = () => { throw 42; }; assertThrowsValue(function() { @@ -36,7 +24,3 @@ Q.toString = () => { throw 17; }; assertThrowsValue(function() { new Q; }, 17); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/expressions/constant-folded-labeled-statement.js b/test/staging/sm/expressions/constant-folded-labeled-statement.js index c4fd1c06e1..b3c6e867a1 100644 --- a/test/staging/sm/expressions/constant-folded-labeled-statement.js +++ b/test/staging/sm/expressions/constant-folded-labeled-statement.js @@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Constant folder should fold labeled statements esid: pending ---*/ -var BUGNUMBER = 1499448; -var summary = "Constant folder should fold labeled statements"; - -print(BUGNUMBER + ": " + summary); if (typeof disassemble === "function") { var code = disassemble(() => { x: 2+2; }); diff --git a/test/staging/sm/expressions/delete-constant-folded-and-or.js b/test/staging/sm/expressions/delete-constant-folded-and-or.js index a79c30724c..76c10c6d52 100644 --- a/test/staging/sm/expressions/delete-constant-folded-and-or.js +++ b/test/staging/sm/expressions/delete-constant-folded-and-or.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Deletion of a && or || expression that constant-folds to a name must not attempt to delete the name esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 1183400; -var summary = - "Deletion of a && or || expression that constant-folds to a name must not " + - "attempt to delete the name"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ Object.defineProperty(this, "nonconfigurable", { value: 42 }); assert.sameValue(nonconfigurable, 42); @@ -42,7 +31,3 @@ function nestedStrict() assert.sameValue(delete (true && nonconfigurable), true); } nestedStrict(); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/expressions/delete-name-parenthesized-early-error-strict-mode.js b/test/staging/sm/expressions/delete-name-parenthesized-early-error-strict-mode.js index f2e0fb58ed..896a91a7d6 100644 --- a/test/staging/sm/expressions/delete-name-parenthesized-early-error-strict-mode.js +++ b/test/staging/sm/expressions/delete-name-parenthesized-early-error-strict-mode.js @@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + delete (foo), delete ((foo)), and so on are strict mode early errors esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 1111101; -var summary = - "delete (foo), delete ((foo)), and so on are strict mode early errors"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function checkSyntaxError(code) { @@ -76,8 +66,3 @@ checkFine("function f() { delete (escape); } f();"); checkFine("function f() { delete (escape); }"); checkFine("function f() { delete ((escape)); } f();"); checkFine("function f() { delete ((escape)); }"); - - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/expressions/destructuring-array-default-call.js b/test/staging/sm/expressions/destructuring-array-default-call.js index 2c4207d886..6731d0ee33 100644 --- a/test/staging/sm/expressions/destructuring-array-default-call.js +++ b/test/staging/sm/expressions/destructuring-array-default-call.js @@ -6,14 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-expressions-shell.js] flags: - noStrict description: | - pending + Array destructuring with various default values in various context - call/new expression esid: pending ---*/ -var BUGNUMBER = 1184922; -var summary = "Array destructuring with various default values in various context - call/new expression"; - -print(BUGNUMBER + ": " + summary); testDestructuringArrayDefault("func()"); testDestructuringArrayDefault("new func()"); - diff --git a/test/staging/sm/expressions/destructuring-array-default-class.js b/test/staging/sm/expressions/destructuring-array-default-class.js index dfe145dbb9..6d52753f00 100644 --- a/test/staging/sm/expressions/destructuring-array-default-class.js +++ b/test/staging/sm/expressions/destructuring-array-default-class.js @@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-expressions-shell.js] flags: - noStrict description: | - pending + Array destructuring with various default values in various context - class expression and super/new.target esid: pending ---*/ -var BUGNUMBER = 1184922; -var summary = "Array destructuring with various default values in various context - class expression and super/new.target"; - -print(BUGNUMBER + ": " + summary); testDestructuringArrayDefault(`class E { constructor() {} @@ -78,4 +74,3 @@ opt = { no_comp: false, }; testDestructuringArrayDefault("new.target", opt); - diff --git a/test/staging/sm/expressions/destructuring-array-default-function-nested.js b/test/staging/sm/expressions/destructuring-array-default-function-nested.js index 93b2f0c720..92b02d8efd 100644 --- a/test/staging/sm/expressions/destructuring-array-default-function-nested.js +++ b/test/staging/sm/expressions/destructuring-array-default-function-nested.js @@ -6,15 +6,10 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-expressions-shell.js] flags: - noStrict description: | - pending + Array destructuring with various default values in various context - function expression with nested objects esid: pending ---*/ -var BUGNUMBER = 1184922; -var summary = "Array destructuring with various default values in various context - function expression with nested objects"; - -print(BUGNUMBER + ": " + summary); testDestructuringArrayDefault("function f() { return { f() {}, *g() {}, r: /a/ }; }"); testDestructuringArrayDefault("function* g() { return { f() {}, *g() {}, r: /b/ }; }"); testDestructuringArrayDefault("() => { return { f() {}, *g() {}, r: /c/ }; }"); - diff --git a/test/staging/sm/expressions/destructuring-array-default-function.js b/test/staging/sm/expressions/destructuring-array-default-function.js index 3954c63e7b..c4252877e5 100644 --- a/test/staging/sm/expressions/destructuring-array-default-function.js +++ b/test/staging/sm/expressions/destructuring-array-default-function.js @@ -6,15 +6,10 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-expressions-shell.js] flags: - noStrict description: | - pending + Array destructuring with various default values in various context - function expression esid: pending ---*/ -var BUGNUMBER = 1184922; -var summary = "Array destructuring with various default values in various context - function expression"; - -print(BUGNUMBER + ": " + summary); testDestructuringArrayDefault("function f() {}"); testDestructuringArrayDefault("function* g() {}"); testDestructuringArrayDefault("() => {}"); - diff --git a/test/staging/sm/expressions/destructuring-array-default-simple.js b/test/staging/sm/expressions/destructuring-array-default-simple.js index 99e9dd8997..5a859e275b 100644 --- a/test/staging/sm/expressions/destructuring-array-default-simple.js +++ b/test/staging/sm/expressions/destructuring-array-default-simple.js @@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-expressions-shell.js] flags: - noStrict description: | - pending + Array destructuring with various default values in various context - simple literal esid: pending ---*/ -var BUGNUMBER = 1184922; -var summary = "Array destructuring with various default values in various context - simple literal"; - -print(BUGNUMBER + ": " + summary); testDestructuringArrayDefault("'foo'"); testDestructuringArrayDefault("`foo`"); @@ -22,4 +18,3 @@ testDestructuringArrayDefault("/foo/"); testDestructuringArrayDefault("{}"); testDestructuringArrayDefault("[]"); - diff --git a/test/staging/sm/expressions/destructuring-array-default-yield.js b/test/staging/sm/expressions/destructuring-array-default-yield.js index 5f7e11c179..959677f72d 100644 --- a/test/staging/sm/expressions/destructuring-array-default-yield.js +++ b/test/staging/sm/expressions/destructuring-array-default-yield.js @@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-expressions-shell.js] flags: - noStrict description: | - pending + Array destructuring with various default values in various context - yield expression esid: pending ---*/ -var BUGNUMBER = 1184922; -var summary = "Array destructuring with various default values in various context - yield expression"; - -print(BUGNUMBER + ": " + summary); var opt = { no_plain: true, @@ -28,4 +24,3 @@ var opt = { no_gen: false, }; testDestructuringArrayDefault("yield 1", opt); - diff --git a/test/staging/sm/expressions/destructuring-array-done.js b/test/staging/sm/expressions/destructuring-array-done.js index 0f31f76ce6..94aa1561f1 100644 --- a/test/staging/sm/expressions/destructuring-array-done.js +++ b/test/staging/sm/expressions/destructuring-array-done.js @@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + iterator.next() should not be called when after iterator completes esid: pending ---*/ -var BUGNUMBER = 1184922; -var summary = "iterator.next() should not be called when after iterator completes"; - -print(BUGNUMBER + ": " + summary); var log; function reset() { @@ -325,4 +321,3 @@ assert.sameValue(log, "next," + "next," + "set:r=[4],"); - diff --git a/test/staging/sm/expressions/destructuring-array-lexical.js b/test/staging/sm/expressions/destructuring-array-lexical.js index 713aa8077a..3b83018571 100644 --- a/test/staging/sm/expressions/destructuring-array-lexical.js +++ b/test/staging/sm/expressions/destructuring-array-lexical.js @@ -6,14 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Array destructuring with accessing uninitialized lexical binding. esid: pending ---*/ -var BUGNUMBER = 1184922; -var summary = "Array destructuring with accessing uninitialized lexical binding."; - -print(BUGNUMBER + ": " + summary); assert.throws(ReferenceError, () => { let y = [y] = []; }); assert.throws(ReferenceError, () => { let y = [y] = [,]; }); - diff --git a/test/staging/sm/expressions/destructuring-pattern-parenthesized.js b/test/staging/sm/expressions/destructuring-pattern-parenthesized.js index 1c1bfc4696..3d749be2da 100644 --- a/test/staging/sm/expressions/destructuring-pattern-parenthesized.js +++ b/test/staging/sm/expressions/destructuring-pattern-parenthesized.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Parenthesized "destructuring patterns" are not usable as destructuring patterns esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 1146136; -var summary = - 'Parenthesized "destructuring patterns" are not usable as destructuring ' + - 'patterns'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ // Don't pollute the top-level script with eval references. var savedEval = this[String.fromCharCode(101, 118, 97, 108)]; @@ -137,8 +126,3 @@ checkError("var a, b; [(f()) = 'kthxbai', b] = [1, 2];", SyntaxError, SyntaxErro Function("var a, b; ({ a: (a), b} = { a: 1, b: 2 });")(); Function("var a, b; ({ a: (a) = 5, b} = { a: 1, b: 2 });")(); - - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/expressions/named-accessor-function.js b/test/staging/sm/expressions/named-accessor-function.js index 24057cab4e..7917b31a8e 100644 --- a/test/staging/sm/expressions/named-accessor-function.js +++ b/test/staging/sm/expressions/named-accessor-function.js @@ -8,18 +8,12 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + { get x y() { } } is not valid getter syntax esid: pending ---*/ // Contributor: // Jeff Walden -//----------------------------------------------------------------------------- -var BUGNUMBER = 999999; -var summary = '{ get x y() { } } is not valid getter syntax'; - -print(BUGNUMBER + ": " + summary); - var BAD_CODE = ["({ get x y() { } })", "({ set x y(v) { } })"]; for (var i = 0, sz = BAD_CODE.length; i < sz; i++) @@ -56,4 +50,3 @@ for (var i = 0, sz = BAD_CODE.length; i < sz; i++) "bad or no exception thrown for Function(" + code + "): " + err); } } - diff --git a/test/staging/sm/expressions/nested-delete-name-in-evalcode.js b/test/staging/sm/expressions/nested-delete-name-in-evalcode.js index 2c4baa7cda..9985f99260 100644 --- a/test/staging/sm/expressions/nested-delete-name-in-evalcode.js +++ b/test/staging/sm/expressions/nested-delete-name-in-evalcode.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + |delete x| inside a function in eval code, where that eval code includes |var x| at top level, actually does delete the binding for x esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 616294; -var summary = - "|delete x| inside a function in eval code, where that eval code includes " + - "|var x| at top level, actually does delete the binding for x"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var f; @@ -163,8 +152,3 @@ function testFunctionLocal() f = testFunctionLocal(); assert.sameValue(f(), false); // defined by function code => not configurable => false - - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/expressions/nullish-coalescing.js b/test/staging/sm/expressions/nullish-coalescing.js index 668f7a9271..96f5138b54 100644 --- a/test/staging/sm/expressions/nullish-coalescing.js +++ b/test/staging/sm/expressions/nullish-coalescing.js @@ -8,13 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Implement the Nullish Coalescing operator (??) proposal esid: pending ---*/ -var BUGNUMBER = 1566141; -var summary = "Implement the Nullish Coalescing operator (??) proposal"; - -print(BUGNUMBER + ": " + summary); // These tests are originally from webkit. // webkit specifics have been removed and a test for `document.all` has @@ -117,6 +113,3 @@ shouldBe(null?.() ?? 3, 3); shouldBe((() => 0)?.() ?? 3, 0); shouldBe(({ x: 0 })?.[null?.a ?? 'x'] ?? 3, 0); shouldBe((() => 0)?.(null?.a ?? 'x') ?? 3, 0); - -print("Tests complete"); - diff --git a/test/staging/sm/expressions/object-literal-__proto__.js b/test/staging/sm/expressions/object-literal-__proto__.js index ea8c69dd24..be424359fd 100644 --- a/test/staging/sm/expressions/object-literal-__proto__.js +++ b/test/staging/sm/expressions/object-literal-__proto__.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + __proto__ in object literals in non-__proto__:v contexts doesn't modify [[Prototype]] esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 1061853; -var summary = - "__proto__ in object literals in non-__proto__:v contexts doesn't modify " + - "[[Prototype]]"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function hasOwn(obj, prop) { @@ -268,7 +257,3 @@ for (var first in members) } } } - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/expressions/object-literal-accessor-arguments.js b/test/staging/sm/expressions/object-literal-accessor-arguments.js index f22f30bc19..64abbbd61e 100644 --- a/test/staging/sm/expressions/object-literal-accessor-arguments.js +++ b/test/staging/sm/expressions/object-literal-accessor-arguments.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + { get x(v) { } } and { set x(v, v2) { } } should be syntax errors esid: pending ---*/ -var gTestfile = 'object-literal-accessor-arguments.js'; -//----------------------------------------------------------------------------- -var BUGNUMBER = 536472; -var summary = - 'ES5: { get x(v) { } } and { set x(v, v2) { } } should be syntax errors'; - -print(BUGNUMBER + ": " + summary); - -//----------------------------------------------------------------------------- function expectSyntaxError(s) { @@ -46,6 +37,3 @@ expectSyntaxError("({ set x(a, a) { } })"); expectSyntaxError("({ set x(a, b) { } })"); expectSyntaxError("({ set x(a, a, b) { } })"); expectSyntaxError("({ set x(a, b, c) { } })"); - -//----------------------------------------------------------------------------- - diff --git a/test/staging/sm/expressions/object-literal-accessor-property-name.js b/test/staging/sm/expressions/object-literal-accessor-property-name.js index 653eaca5ae..b6cddbefff 100644 --- a/test/staging/sm/expressions/object-literal-accessor-property-name.js +++ b/test/staging/sm/expressions/object-literal-accessor-property-name.js @@ -8,17 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Permit numbers and strings containing numbers as accessor property names esid: pending ---*/ -var gTestfile = 'object-literal-accessor-property-name.js'; -//----------------------------------------------------------------------------- -var BUGNUMBER = 715682; -var summary = - "Permit numbers and strings containing numbers as accessor property names"; -print(BUGNUMBER + ": " + summary); - -//----------------------------------------------------------------------------- ({ get "0"() { } }); ({ get 0() { } }); @@ -33,6 +25,3 @@ print(BUGNUMBER + ": " + summary); ({ set 0.(q) { } }); ({ set 1.(q) { } }); ({ set 5.2322341234123(q) { } }); - -//----------------------------------------------------------------------------- - diff --git a/test/staging/sm/expressions/object-literal-computed-property-evaluation.js b/test/staging/sm/expressions/object-literal-computed-property-evaluation.js index 8447bc7289..1f67cce2bf 100644 --- a/test/staging/sm/expressions/object-literal-computed-property-evaluation.js +++ b/test/staging/sm/expressions/object-literal-computed-property-evaluation.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Convert computed property name expressions to property key before evaluating the property's value esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 1199546; -var summary = - "Convert computed property name expressions to property key before " + - "evaluating the property's value"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var s = "foo"; var convertsToS = { toString() { return s; } }; @@ -39,7 +28,3 @@ var o = { assert.sameValue(o.foo, "abc"); assert.sameValue(o.bar, "efg"); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/expressions/octal-literals.js b/test/staging/sm/expressions/octal-literals.js index d6d2b2ad05..f24151f3c3 100644 --- a/test/staging/sm/expressions/octal-literals.js +++ b/test/staging/sm/expressions/octal-literals.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Implement ES6 octal literals esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 894026; -var summary = "Implement ES6 octal literals"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var chars = ['o', 'O']; @@ -104,7 +95,3 @@ function strict() return 0o755; } assert.sameValue(strict(), 7 * 64 + 5 * 8 + 5); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/expressions/primitive-this-boxing-behavior.js b/test/staging/sm/expressions/primitive-this-boxing-behavior.js index b69d9dbfe6..b32ac215bc 100644 --- a/test/staging/sm/expressions/primitive-this-boxing-behavior.js +++ b/test/staging/sm/expressions/primitive-this-boxing-behavior.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Primitive values don't box correctly esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 732669; -var summary = "Primitive values don't box correctly"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var t; function returnThis() { return this; } @@ -107,7 +98,3 @@ t = "bar".property; assert.sameValue(t !== Object.prototype, true); assert.sameValue(t !== String.prototype, true); assert.sameValue(t.toString(), "bar"); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/expressions/string-literal-escape-sequences.js b/test/staging/sm/expressions/string-literal-escape-sequences.js index 95c5d96ba4..d6e9b855bd 100644 --- a/test/staging/sm/expressions/string-literal-escape-sequences.js +++ b/test/staging/sm/expressions/string-literal-escape-sequences.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + \\u and \\x must be followed by the appropriate number of hex digits or else it is a syntax error esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 663300; -var summary = - "\\u and \\x must be followed by the appropriate number of hex digits or " + - "else it is a syntax error"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function expectSyntaxError(str) { @@ -147,7 +136,3 @@ assert.sameValue(eval('"a\\\nb"'), "ab"); assert.sameValue(eval('"a\\\r\nb"'), "ab"); assert.sameValue(eval('"a\\\u2028b"'), "ab"); assert.sameValue(eval('"a\\\u2029b"'), "ab"); - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/expressions/tagged-template-constant-folding.js b/test/staging/sm/expressions/tagged-template-constant-folding.js index a651c65f68..73af4c3164 100644 --- a/test/staging/sm/expressions/tagged-template-constant-folding.js +++ b/test/staging/sm/expressions/tagged-template-constant-folding.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Don't let constant-folding in the MemberExpression part of a tagged template cause an incorrect |this| be passed to the callee esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 1182373; -var summary = - "Don't let constant-folding in the MemberExpression part of a tagged " + - "template cause an incorrect |this| be passed to the callee"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var prop = "global"; @@ -29,7 +18,3 @@ var obj = { prop: "obj", f: function() { return this.prop; } }; assert.sameValue(obj.f``, "obj"); assert.sameValue((true ? obj.f : null)``, "global"); - -/******************************************************************************/ - -print("Tests complete");