Skip to content

Commit 159b05b

Browse files
Remove usages of deprecated EM_ASM variants. (#18802)
1 parent 5ea6244 commit 159b05b

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

test/browser/test_sdl2_mixer_music.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int main(int argc, char* argv[])
2626
return -1;
2727
}
2828

29-
frequency = EM_ASM_INT_V({
29+
frequency = EM_ASM_INT({
3030
var context;
3131
try {
3232
context = new AudioContext();

test/browser/test_sdl2_mixer_wav.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main(int argc, char* argv[]){
3030
puts("Failed to init audio");
3131
return 100;
3232
}
33-
int const frequency = EM_ASM_INT_V({
33+
int const frequency = EM_ASM_INT({
3434
var context;
3535
try {
3636
context = new AudioContext();

test/core/test_inlinejs3.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ int main(int argc, char **argv) {
2020
EM_ASM(out('hello dere3'); out('hello dere' + 4););
2121
}
2222
EM_ASM({ out('hello input ' + $0) }, 123);
23-
EM_ASM_ARGS({ out('hello input ' + $0) }, 456);
2423
int sum = 0;
2524
for (int i = 0; i < argc * 3; i++) {
2625
sum += EM_ASM_INT({

test/core/test_inlinejs3.out

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ hello dere4
77
hello dere3
88
hello dere4
99
hello input 123
10-
hello input 456
1110
i: 0,0.00
1211
i: 1,0.08
1312
i: 2,0.17

test/fs/test_mmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ void test_mmap_overallocate() {
235235
assert(write(fd, "a", 1) != -1);
236236
}
237237

238-
EM_ASM_({
238+
EM_ASM({
239239
const stream = FS.streams.find(stream => stream.path.indexOf('yolo/overallocatedfile.txt') >= 0);
240240
assert(stream.node.usedBytes === Number($0),
241241
'Used bytes on the over-allocated file (' + stream.node.usedBytes + ') ' +

0 commit comments

Comments
 (0)