Enable strict mode testing for sm/regress

This commit is contained in:
André Bargull 2025-04-30 14:16:37 +02:00 committed by Philip Chimento
parent a0f3f2f9b5
commit 84b567da81
71 changed files with 9 additions and 151 deletions

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -2,8 +2,6 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending
@ -11,7 +9,7 @@ features: [host-gc-required]
---*/ ---*/
function TestGC2(m) { function TestGC2(m) {
var head = new Object; var head = new Object;
for (key = head, i = 0; i < 99999; i++, key = m.get(key)) { for (var key = head, i = 0; i < 99999; i++, key = m.get(key)) {
m.set(key, new Object); m.set(key, new Object);
} }
$262.gc(); $262.gc();

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Valgrind errors in jsemit.cpp Valgrind errors in jsemit.cpp
esid: pending esid: pending

View File

@ -4,14 +4,12 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending
---*/ ---*/
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
var BUGNUMBER = 441477-01; var BUGNUMBER = 441477;
var summary = ''; var summary = '';
var actual = 'No Exception'; var actual = 'No Exception';
var expect = 'No Exception'; var expect = 'No Exception';
@ -25,7 +23,7 @@ function test()
{ {
try try
{ {
for (i = 0; i < 5;) for (var i = 0; i < 5;)
{ {
if (i > 5) if (i > 5)
throw "bad"; throw "bad";

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending
@ -21,14 +19,14 @@ var expect = 'No Crash';
if (typeof navigator == 'undefined') if (typeof navigator == 'undefined')
{ {
navigator = { var navigator = {
userAgent: "Firefox", userAgent: "Firefox",
vendor: "Mozilla", vendor: "Mozilla",
platform: "Mac" platform: "Mac"
}; };
} }
global = this; var global = this;
var BrowserDetect = { var BrowserDetect = {
init: function _init() init: function _init()

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Promote evald initializer into upvar Promote evald initializer into upvar
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -2,8 +2,6 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -2,8 +2,6 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -2,8 +2,6 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -2,8 +2,6 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending
@ -18,11 +16,11 @@ function make() {
return r; return r;
} }
r1 = make(); var r1 = make();
assert.sameValue(r1.desc.get, r1.info.get); assert.sameValue(r1.desc.get, r1.info.get);
// Distinct evaluations of an object literal make distinct methods. // Distinct evaluations of an object literal make distinct methods.
r2 = make(); var r2 = make();
assert.sameValue(r1.desc.get === r2.desc.get, false); assert.sameValue(r1.desc.get === r2.desc.get, false);
r1.info.get.foo = 42; r1.info.get.foo = 42;

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Do not assert when ungetting a Unicode char sequence Do not assert when ungetting a Unicode char sequence
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending
@ -14,10 +12,10 @@ esid: pending
var gnew = $262.createRealm().global; var gnew = $262.createRealm().global;
gnew.eval("function f() { return this; }"); gnew.eval("function f() { return this; }");
f = gnew.f; var f = gnew.f;
assert.sameValue(f(), gnew); assert.sameValue(f(), gnew);
gnew.eval("function g() { 'use strict'; return this; }"); gnew.eval("function g() { 'use strict'; return this; }");
g = gnew.g; var g = gnew.g;
assert.sameValue(g(), undefined); assert.sameValue(g(), undefined);

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -2,8 +2,6 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending