Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
used StringPrototypeSplit primordials and added more conditions
  • Loading branch information
pulkit-30 committed Jan 31, 2023
commit d3ab0fcd9a8b32d4e0ec267797ae08987b50d36d
4 changes: 3 additions & 1 deletion lib/internal/test_runner/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const {
SafeMap,
SafeSet,
StringPrototypeStartsWith,
StringPrototypeSplit,
Comment thread
aduh95 marked this conversation as resolved.
Outdated
} = primordials;

const { spawn } = require('child_process');
Expand Down Expand Up @@ -132,7 +133,8 @@ function getRunArgs({ path, inspectPort }) {
class FileTest extends Test {
#buffer = [];
#checkNestedComment(node) {
return ArrayPrototypeIncludes(diagnosticsFilterArgs, node.comment.split(' ')[0]);
const commentArgs = StringPrototypeSplit(node.comment, ' ');
Comment thread
aduh95 marked this conversation as resolved.
Outdated
return commentArgs.length === 2 && ArrayPrototypeIncludes(diagnosticsFilterArgs, commentArgs[0]);
}
#handleReportItem({ kind, node, nesting = 0 }) {
nesting += 1;
Expand Down