Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitead5945

Browse files
committed
Fix#148 - Stop testing the version function.
1 parentb634601 commitead5945

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

‎js/jsfunfuzz/detect-engine.js‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ if (jsshell) {
2929

3030
// Avoid accidentally waiting for user input that will never come.
3131
readline=function(){};
32-
33-
// 170: make "yield" and "let" work. 180: better for..in behavior.
34-
version(180);
3532
}elseif(typeofXPCNativeWrapper=="function"){
3633
// e.g. xpcshell or firefox
3734
engine=ENGINE_SPIDERMONKEY_TRUNK;

‎js/jsfunfuzz/gen-grammar.js‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,8 @@ var exprMakers =
907907
function(d,b){return"(void options('strict'))";},
908908

909909
// Spidermonkey: versions
910-
function(d,b){return"(void version("+Random.index([170,180,185])+"))";},
910+
// Commenting out because this version function has been removed as of m-c rev 392455 (Fx59) - 589914e65db7
911+
//function(d, b) { return "(void version(" + Random.index([170, 180, 185]) + "))"; },
911912

912913
// More special Spidermonkey shell functions
913914
// (Note: functions without returned objects or visible side effects go in testing-functions.js, in order to allow presence/absence differential testing.)
@@ -1572,12 +1573,6 @@ function makeComprehension(d, b)
15721573
functionmakeForInLHS(d,b)
15731574
{
15741575
if(rnd(TOTALLY_RANDOM)==2)returntotallyRandom(d,b);
1575-
1576-
// JS 1.7 only (removed in JS 1.8)
1577-
//
1578-
// if (version() == 170 && rnd(4) === 0)
1579-
// return cat(["[", makeLValue(d, b), ", ", makeLValue(d, b), "]"]);
1580-
15811576
returnmakeLValue(d,b);
15821577
}
15831578

‎js/shellFlags.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def randomFlagSet(shellPath):
6969
# Anything in-between involving let probably needs "-e 'version(185);'" to see if we can bypass breakage
7070
# if shellSupportsFlag(shellPath, "--execute='version(185);'"):
7171
# args.append("--execute='version(185);'")
72+
# Note that the version function was removed in m-c rev 392455 (Fx59) - 589914e65db7
7273

7374
# Note for future: --wasm-check-bce is only useful for x86 and ARM32
7475

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp