2019-11-13 10:35:56 -05:00
|
|
|
[WILDCARD]
|
2021-01-11 09:32:34 -05:00
|
|
|
function returnsHi() {
|
|
|
|
return "Hi";
|
2020-10-23 07:05:41 -04:00
|
|
|
}
|
|
|
|
function returnsFoo() {
|
|
|
|
return "Foo";
|
|
|
|
}
|
2021-01-11 09:32:34 -05:00
|
|
|
function printHello() {
|
|
|
|
console.log("Hello");
|
|
|
|
}
|
2020-10-23 07:05:41 -04:00
|
|
|
function printHello2() {
|
|
|
|
printHello();
|
|
|
|
}
|
2021-01-11 09:32:34 -05:00
|
|
|
function returnsFoo2() {
|
2020-10-23 07:05:41 -04:00
|
|
|
return returnsFoo();
|
|
|
|
}
|
2021-01-11 09:32:34 -05:00
|
|
|
function printHello3() {
|
2020-10-23 07:05:41 -04:00
|
|
|
printHello2();
|
|
|
|
}
|
2021-01-11 09:32:34 -05:00
|
|
|
function throwsError() {
|
2020-10-23 07:05:41 -04:00
|
|
|
throw Error("exception from mod1");
|
|
|
|
}
|
2021-01-11 09:32:34 -05:00
|
|
|
const returnsHi1 = returnsHi;
|
|
|
|
const returnsFoo21 = returnsFoo2;
|
|
|
|
const printHello31 = printHello3;
|
|
|
|
const throwsError1 = throwsError;
|
|
|
|
export { returnsHi as returnsHi };
|
|
|
|
export { returnsFoo2 as returnsFoo2 };
|
|
|
|
export { printHello3 as printHello3 };
|
|
|
|
export { throwsError as throwsError };
|
|
|
|
|