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: |
pending
esid: pending

View File

@ -2,8 +2,6 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
flags:
- noStrict
description: |
pending
esid: pending
@ -11,7 +9,7 @@ features: [host-gc-required]
---*/
function TestGC2(m) {
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);
}
$262.gc();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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