add static sanity check for human error of forgetting DataView endianness

This commit is contained in:
AJ ONeal 2017-02-11 15:40:21 -07:00
parent 6ecb2882dc
commit 037247c91b
1 changed files with 7 additions and 0 deletions

7
test/check-endianness.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
# A sanity check to prevent human error
echo "if you see any output, this test has failed"
grep -R setUint *.js test/ | grep -v false
grep -R getUint *.js test/ | grep -v false