Skip to content
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions run-test262.c
Original file line number Diff line number Diff line change
Expand Up @@ -1556,15 +1556,15 @@ static int eval_file(JSContext *ctx, const char *base, const char *p,
return 1;
}

char *extract_desc(const char *buf, char style)
char *extract_desc(const char *buf)
{
const char *p, *desc_start;
char *desc;
int len;

p = buf;
while (*p != '\0') {
if (p[0] == '/' && p[1] == '*' && p[2] == style && p[3] != '/') {
if (p[0] == '/' && p[1] == '*' && p[2] == '-' && p[3] != '/') {
p += 3;
desc_start = p;
while (*p != '\0' && (p[0] != '*' || p[1] != '/'))
Expand Down Expand Up @@ -1787,7 +1787,7 @@ int run_test(const char *filename, int *msec)
namelist_add(ip, NULL, "assert.js");
}
/* extract the YAML frontmatter */
desc = extract_desc(buf, '-');
desc = extract_desc(buf);
if (desc) {
char *ifile, *option;
int state;
Expand Down
Loading