forked from cory/tildefriends
Cory McWilliams
cca505ff01
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3285 ed5197a5-7fde-0310-b194-c3ffbd925b24
24 lines
292 B
Bash
24 lines
292 B
Bash
#!/bin/bash
|
|
|
|
cat > test.js << EOF
|
|
print("hi");
|
|
|
|
function foobar() {
|
|
return new Promise(function (resolve, reject) {
|
|
resolve(10);
|
|
});
|
|
}
|
|
|
|
async function huh() {
|
|
let v = await foobar();
|
|
print("v => " + v);
|
|
if (v != 10) {
|
|
throw new Error("nope");
|
|
}
|
|
}
|
|
|
|
huh();
|
|
EOF
|
|
|
|
$TILDEFRIENDS test.js
|