Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Commit 63cceba

Browse files
Remove irrelevant comment + support node.js (#70)
* Remove irrelevant comment * Support node.js as well
1 parent 6c802fa commit 63cceba

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

test/meta/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
SHARED_MEM=false
2+
13
# SpiderMonkey shell
2-
JSSHELL=~/m-i/js/src/build-debug/dist/bin/js -e 'const WITH_SHARED_MEMORY=false;' -f common.js
4+
JSSHELL=~/m-i/js/src/build-debug/dist/bin/js -e 'const WITH_SHARED_MEMORY=$(SHARED_MEM);' -f common.js
5+
6+
# Node.js
7+
#JSSHELL=./noderun.sh $(SHARED_MEM)
38

49
TARGETDIR=../core
510

test/meta/common.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
// WITH_SHARED_MEMORY can be overridden in a preamble, see `Makefile`.
2-
//
3-
// Set WITH_SHARED_MEMORY to true to get additional testing on memory backed by
4-
// SharedArrayBuffer.
5-
if (typeof this.WITH_SHARED_MEMORY == "undefined") {
6-
this.WITH_SHARED_MEMORY = false;
7-
}
8-
91
const PAGESIZE = 65536;
102

113
function print_origin(origin) {

test/meta/generate_table_copy.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,6 @@ tab_test2("(table.copy (i32.const 15) (i32.const 30) (i32.const 0))",
205205
// - src address oob
206206
// - target address oob
207207
// - both oob
208-
//
209-
// Note we do not test the multi-table case here because that is part of the
210-
// reftypes proposal; tests are in the gc/ subdirectory.
211208

212209
const tbl_copy_len = 16;
213210

test/meta/noderun.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
if [ $# -ne 2 ]; then
2+
echo "Bad args"
3+
exit 1
4+
fi
5+
6+
rm -f nodeprog.js
7+
cat <<EOF >> nodeprog.js
8+
const WITH_SHARED_MEMORY=$1;
9+
function print(x) {
10+
console.log(x);
11+
}
12+
EOF
13+
cat common.js >> nodeprog.js
14+
cat $2 >> nodeprog.js
15+
node nodeprog.js
16+
rm nodeprog.js

0 commit comments

Comments
 (0)