⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 287025 in webkit


Ignore:
Timestamp:
Dec 14, 2021, 8:43:21 AM (5 years ago)
Author:
Angelos Oikonomopoulos
Message:

[JSC] Fix LocalJumpError in run-jsc-stress-tests
https://bugs.webkit.org/show_bug.cgi?id=234295

Reviewed by Michael Catanzaro.

Ruby code cannot return from a Proc; use an if/else instead. This fixes
the LocalJumpError reported in https://bugs.webkit.org/show_bug.cgi?id=233926.

  • Scripts/run-jsc-stress-tests:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r287021 r287025  
     12021-12-14  Angelos Oikonomopoulos  <angelos@igalia.com>
     2
     3        [JSC] Fix LocalJumpError in run-jsc-stress-tests
     4        https://bugs.webkit.org/show_bug.cgi?id=234295
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Ruby code cannot return from a Proc; use an if/else instead. This fixes
     9        the LocalJumpError reported in https://bugs.webkit.org/show_bug.cgi?id=233926.
     10
     11        * Scripts/run-jsc-stress-tests:
     12
    1132021-12-14  Jean-Yves Avenard  <jya@apple.com>
    214
  • trunk/Tools/Scripts/run-jsc-stress-tests

    r286963 r287025  
    13741374        "no-llint",
    13751375        Proc.new { |*optionalTestSpecificOptions|
    1376             return nil unless $jitTests
    1377             {
    1378                 :cfg => {
    1379                 },
    1380                 :testSpecificOptions => [
    1381                     "--useLLInt=false",
    1382                 ] + optionalTestSpecificOptions
    1383             }
     1376            if $jitTests
     1377                {
     1378                    :cfg => {
     1379                    },
     1380                    :testSpecificOptions => [
     1381                        "--useLLInt=false",
     1382                    ] + optionalTestSpecificOptions
     1383                }
     1384            else
     1385                nil
     1386            end
    13841387        }
    13851388    ],
     
    13891392        Proc.new { |*optionalTestSpecificOptions|
    13901393            if $memoryLimited
    1391                 return nil
     1394                nil
     1395            else
     1396                {
     1397                    :testSpecificOptions => optionalTestSpecificOptions
     1398                }
    13921399            end
    1393             {
    1394                 :testSpecificOptions => optionalTestSpecificOptions
    1395             }
    13961400        }
    13971401    ]
Note: See TracChangeset for help on using the changeset viewer.