94
94
95
95
/*jslint beta, node*/
96
96
/*property
97
- excludeList,
98
- globExclude,
99
- import_meta_url, includeList,
100
- pathnameList,
101
97
JSLINT_BETA, NODE_V8_COVERAGE, a, all, argv, arity, artifact,
102
98
assertErrorThrownAsync, assertJsonEqual, assertOrThrow, assign, async, b,
103
99
beta, bitwise, block, body, browser, c, calls, catch, catch_list,
106
102
convert, count, coverageDir, create, cwd, d, dead, debugInline, default,
107
103
delta, devel, directive, directive_list, directive_quiet, directives,
108
104
dirname, disrupt, dot, edition, elem_list, ellipsis, else, end, endOffset,
109
- endsWith, entries, env, error, eval, every, example_list, exec, execArgv ,
110
- exit, exitCode, export_dict, exports, expression, extra, file, fileList ,
111
- fileURLToPath, filter, finally, flag, floor, for, forEach,
105
+ endsWith, entries, env, error, eval, every, example_list, excludeList, exec ,
106
+ execArgv, exit, exitCode, export_dict, exports, expression, extra, file,
107
+ fileList, fileURLToPath, filter, finally, flag, floor, for, forEach,
112
108
formatted_message, free, freeze, from, froms, fsWriteFileWithParents,
113
109
fud_stmt, functionName, function_list, function_stack, functions, get,
114
- getset, github_repo, global, global_dict, global_list, holeList, htmlEscape ,
115
- id, identifier, import, import_list, inc, indent2, index, indexOf, init ,
116
- initial, isArray, isBlockCoverage, isHole, isNaN, is_equal, is_fart ,
117
- is_weird, join, jslint, jslint_apidoc, jslint_assert, jslint_charset_ascii ,
118
- jslint_cli, jslint_edition, jslint_phase1_split, jslint_phase2_lex ,
119
- jslint_phase3_parse, jslint_phase4_walk, jslint_phase5_whitage ,
120
- jslint_report, json, jstestDescribe, jstestIt, jstestOnExit, keys, label ,
121
- lbp, led_infix, length, level, line, lineList, line_list, line_offset ,
122
- line_source, lines, linesCovered, linesTotal, live, log, long, loop, m, map ,
123
- margin, match, max, message, meta, min, mkdir, modeCoverageIgnoreFile ,
124
- modeIndex, mode_cli, mode_conditional, mode_json, mode_module, mode_noop ,
125
- mode_property, mode_shebang, mode_stop, module, moduleFsInit, moduleName ,
126
- module_list, name, names, node, noop, now, nr, nud_prefix ,
127
- objectDeepCopyWithKeysSorted, ok, on, open, opening, option, option_dict ,
128
- order, package_name, padEnd, padStart, parameters, parent, parentIi, parse ,
129
- pathname, platform, pop, processArgv, process_argv, process_env ,
130
- process_exit, promises, property, property_dict, push, quote, ranges ,
131
- readFile, readdir, readonly, recursive, reduce, repeat, replace, resolve ,
132
- result, reverse, role, round, scriptId, search, set, shebang, shift ,
133
- signature, single, slice, some, sort, source, spawn, splice, split, stack ,
134
- stack_trace, start, startOffset, startsWith, statement, statement_prv ,
135
- stdio, stop, stop_at, stringify, switch, syntax_dict, tenure, test ,
136
- test_cause, test_internal_error, this, thru, toString, token, token_global ,
137
- token_list, token_nxt, token_tree, tokens, trace, tree, trim, trimEnd ,
138
- trimRight, try, type, unlink, unordered, unshift, url, used ,
139
- v8CoverageListMerge, v8CoverageReportCreate, value, variable, version ,
140
- versions, warn, warn_at, warning, warning_list, warnings, white, wrapped ,
141
- writeFile
110
+ getset, github_repo, globExclude, global, global_dict, global_list,
111
+ holeList, htmlEscape, id, identifier, import, import_list, import_meta_url ,
112
+ inc, includeList, indent2, index, indexOf, init, initial, isArray ,
113
+ isBlockCoverage, isHole, isNaN, is_equal, is_fart, is_weird, join, jslint ,
114
+ jslint_apidoc, jslint_assert, jslint_charset_ascii, jslint_cli ,
115
+ jslint_edition, jslint_phase1_split, jslint_phase2_lex, jslint_phase3_parse ,
116
+ jslint_phase4_walk, jslint_phase5_whitage, jslint_report, json ,
117
+ jstestDescribe, jstestIt, jstestOnExit, keys, label, lbp, led_infix, length ,
118
+ level, line, lineList, line_list, line_offset, line_source, lines ,
119
+ linesCovered, linesTotal, live, log, long, loop, m, map, margin, match, max ,
120
+ message, meta, min, mkdir, modeCoverageIgnoreFile, modeIndex, mode_cli ,
121
+ mode_conditional, mode_json, mode_module, mode_noop, mode_property ,
122
+ mode_shebang, mode_stop, module, moduleFsInit, moduleName, module_list ,
123
+ name, names, node, noop, now, nr, nud_prefix, objectDeepCopyWithKeysSorted ,
124
+ ok, on, open, opening, option, option_dict, order, package_name, padEnd ,
125
+ padStart, parameters, parent, parentIi, parse, pathname, pathnameList ,
126
+ platform, pop, processArgv, process_argv, process_env, process_exit ,
127
+ promises, property, property_dict, push, quote, ranges, readFile, readdir ,
128
+ readonly, recursive, reduce, repeat, replace, resolve, result, reverse ,
129
+ role, round, scriptId, search, set, shebang, shift, signature, single ,
130
+ slice, some, sort, source, spawn, splice, split, stack, stack_trace, start ,
131
+ startOffset, startsWith, statement, statement_prv, stdio, stop, stop_at ,
132
+ stringify, switch, syntax_dict, tenure, test, test_cause ,
133
+ test_internal_error, this, thru, toString, token, token_global, token_list ,
134
+ token_nxt, token_tree, tokens, trace, tree, trim, trimEnd, trimRight, try ,
135
+ type, unlink, unordered, unshift, url, used, v8CoverageListMerge ,
136
+ v8CoverageReportCreate, value, variable, version, versions, warn, warn_at ,
137
+ warning, warning_list, warnings, white, wrapped, writeFile
142
138
*/
143
139
144
140
// init debugInline
@@ -168,7 +164,7 @@ let jslint_charset_ascii = (
168
164
+ "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"
169
165
+ "`abcdefghijklmnopqrstuvwxyz{|}~\u007f"
170
166
) ;
171
- let jslint_edition = "v2022.5.20 " ;
167
+ let jslint_edition = "v2022.6.1-beta " ;
172
168
let jslint_export ; // The jslint object to be exported.
173
169
let jslint_fudge = 1 ; // Fudge starting line and starting
174
170
// ... column to 1.
@@ -716,10 +712,11 @@ function jslint(
716
712
return false ;
717
713
}
718
714
if ( aa . arity === bb . arity && aa . id === bb . id ) {
719
- if ( aa . id === "." ) {
715
+ if ( aa . id === "." || aa . id === "?." ) {
720
716
721
717
// test_cause:
722
718
// ["aa.bb&&aa.bb", "is_equal", "recurse_arity_id", "", 0]
719
+ // ["aa?.bb&&aa?.bb", "is_equal", "recurse_arity_id", "", 0]
723
720
724
721
test_cause ( "recurse_arity_id" ) ;
725
722
return (
@@ -4487,6 +4484,8 @@ function jslint_phase3_parse(state) {
4487
4484
left . id !== "["
4488
4485
|| (
4489
4486
name . id !== "concat"
4487
+ && name . id !== "flat"
4488
+ && name . id !== "flatMap"
4490
4489
&& name . id !== "forEach"
4491
4490
&& name . id !== "join"
4492
4491
&& name . id !== "map"
@@ -9805,6 +9804,7 @@ async function jstestDescribe(description, testFunction) {
9805
9804
9806
9805
let message ;
9807
9806
let result ;
9807
+ let timerTimeout ;
9808
9808
9809
9809
// Init jstestTimeStart.
9810
9810
@@ -9820,7 +9820,9 @@ async function jstestDescribe(description, testFunction) {
9820
9820
9821
9821
// Wait for jstestItList to resolve.
9822
9822
9823
+ timerTimeout = setTimeout ( noop , 0x7fffffff ) ;
9823
9824
result = await Promise . all ( jstestItList ) ;
9825
+ clearTimeout ( timerTimeout ) ;
9824
9826
9825
9827
// Print test results.
9826
9828
0 commit comments