Skip to content

Commit 9cb9f7d

Browse files
committed
remove need for baseline
1 parent 350d1c9 commit 9cb9f7d

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

test/JSON/jsonerrorbuffer.baseline

Lines changed: 0 additions & 3 deletions
This file was deleted.

test/JSON/jsonerrorbuffer.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
//-------------------------------------------------------------------------------------------------------
55

66
let desiredLength = 10 * 1000 * 1000;
7-
//desiredLength -= 1;
8-
const json = `"${'a'.repeat(desiredLength - 3)}",`; // "aaa...aaa",
9-
print(json.length);
10-
JSON.parse(json);
11-
print('finished');
7+
let threw = false;
8+
const json = `"${'a'.repeat(desiredLength - 3)}",`;
9+
try {
10+
JSON.parse(json);
11+
} catch(e) {
12+
threw = true;
13+
}
14+
print(threw ? "Pass" : "Fail");

test/JSON/rlexe.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@
105105
<test>
106106
<default>
107107
<files>jsonerrorbuffer.js</files>
108-
<baseline>jsonerrorbuffer.baseline</baseline>
109108
</default>
110109
</test>
111110
</regress-exe>

0 commit comments

Comments
 (0)