Skip to content

Commit 073619c

Browse files
committed
Convert a couple of test files that had win32 line endings. NFC
1 parent 77da629 commit 073619c

File tree

2 files changed

+72
-72
lines changed

2 files changed

+72
-72
lines changed
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
crashing
2-
true
3-
again
4-
program has already aborted!
5-
ccall
6-
program has already aborted!
7-
cwrap
8-
program has already aborted!
9-
embind
10-
program has already aborted!
11-
wasmTableMirror
12-
wasmTableMirror done
1+
crashing
2+
true
3+
again
4+
program has already aborted!
5+
ccall
6+
program has already aborted!
7+
cwrap
8+
program has already aborted!
9+
embind
10+
program has already aborted!
11+
wasmTableMirror
12+
wasmTableMirror done
Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,60 @@
1-
addOnPostRun(function() {
2-
try {
3-
// Crash the program
4-
_cFunc();
5-
}
6-
catch(e) {
7-
// Catch the abort
8-
out(true);
9-
}
10-
out("again");
11-
try {
12-
// Try executing a function directly
13-
_cFunc();
14-
out("never");
15-
}
16-
catch(e) {
17-
out(e);
18-
}
19-
out("ccall");
20-
try {
21-
// Try executing a function via ccall
22-
Module.ccall("cFunc");
23-
out("never");
24-
}
25-
catch(e) {
26-
out(e);
27-
}
28-
out("cwrap");
29-
try {
30-
// Try executing a function via cwrap
31-
Module.cwrap("cFunc")();
32-
out("never");
33-
}
34-
catch(e) {
35-
out(e);
36-
}
37-
out("embind");
38-
try {
39-
// Try executing an embind function
40-
Module.embindFunc();
41-
out("never");
42-
}
43-
catch(e) {
44-
out(e);
45-
}
46-
out("wasmTableMirror");
47-
if (typeof wasmTableMirror !== "undefined") {
48-
49-
try {
50-
// Make sure wasmTableMirror matches wasmTable after wasmTable.get override
51-
var testFunc = function() {};
52-
var funcId = addFunction(testFunc, "v");
53-
assert(wasmTableMirror[funcId] == wasmTable.get(funcId), "wasmTableMirror is out of sync with wasmTable!");
54-
}
55-
catch(e) {
56-
out(e);
57-
}
58-
}
59-
out("wasmTableMirror done");
60-
})
1+
addOnPostRun(function() {
2+
try {
3+
// Crash the program
4+
_cFunc();
5+
}
6+
catch(e) {
7+
// Catch the abort
8+
out(true);
9+
}
10+
out("again");
11+
try {
12+
// Try executing a function directly
13+
_cFunc();
14+
out("never");
15+
}
16+
catch(e) {
17+
out(e);
18+
}
19+
out("ccall");
20+
try {
21+
// Try executing a function via ccall
22+
Module.ccall("cFunc");
23+
out("never");
24+
}
25+
catch(e) {
26+
out(e);
27+
}
28+
out("cwrap");
29+
try {
30+
// Try executing a function via cwrap
31+
Module.cwrap("cFunc")();
32+
out("never");
33+
}
34+
catch(e) {
35+
out(e);
36+
}
37+
out("embind");
38+
try {
39+
// Try executing an embind function
40+
Module.embindFunc();
41+
out("never");
42+
}
43+
catch(e) {
44+
out(e);
45+
}
46+
out("wasmTableMirror");
47+
if (typeof wasmTableMirror !== "undefined") {
48+
49+
try {
50+
// Make sure wasmTableMirror matches wasmTable after wasmTable.get override
51+
var testFunc = function() {};
52+
var funcId = addFunction(testFunc, "v");
53+
assert(wasmTableMirror[funcId] == wasmTable.get(funcId), "wasmTableMirror is out of sync with wasmTable!");
54+
}
55+
catch(e) {
56+
out(e);
57+
}
58+
}
59+
out("wasmTableMirror done");
60+
})

0 commit comments

Comments
 (0)