mirror of
https://github.com/denoland/deno.git
synced 2024-11-23 15:16:54 -05:00
68 lines
4 KiB
JavaScript
68 lines
4 KiB
JavaScript
|
define("subdir/print_hello", ["require", "exports"], function(
|
||
|
require,
|
||
|
exports
|
||
|
) {
|
||
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
function printHello() {
|
||
|
console.log("Hello");
|
||
|
}
|
||
|
exports.printHello = printHello;
|
||
|
});
|
||
|
define("subdir/subdir2/mod2", [
|
||
|
"require",
|
||
|
"exports",
|
||
|
"subdir/print_hello"
|
||
|
], function(require, exports, print_hello_ts_1) {
|
||
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
function returnsFoo() {
|
||
|
return "Foo";
|
||
|
}
|
||
|
exports.returnsFoo = returnsFoo;
|
||
|
function printHello2() {
|
||
|
print_hello_ts_1.printHello();
|
||
|
}
|
||
|
exports.printHello2 = printHello2;
|
||
|
});
|
||
|
define("subdir/mod1", ["require", "exports", "subdir/subdir2/mod2"], function(
|
||
|
require,
|
||
|
exports,
|
||
|
mod2_ts_1
|
||
|
) {
|
||
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
function returnsHi() {
|
||
|
return "Hi";
|
||
|
}
|
||
|
exports.returnsHi = returnsHi;
|
||
|
function returnsFoo2() {
|
||
|
return mod2_ts_1.returnsFoo();
|
||
|
}
|
||
|
exports.returnsFoo2 = returnsFoo2;
|
||
|
function printHello3() {
|
||
|
mod2_ts_1.printHello2();
|
||
|
}
|
||
|
exports.printHello3 = printHello3;
|
||
|
function throwsError() {
|
||
|
throw Error("exception from mod1");
|
||
|
}
|
||
|
exports.throwsError = throwsError;
|
||
|
});
|
||
|
define("005_more_imports", ["require", "exports", "subdir/mod1"], function(
|
||
|
require,
|
||
|
exports,
|
||
|
mod1_ts_1
|
||
|
) {
|
||
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
mod1_ts_1.printHello3();
|
||
|
if (mod1_ts_1.returnsHi() !== "Hi") {
|
||
|
throw Error("Unexpected");
|
||
|
}
|
||
|
if (mod1_ts_1.returnsFoo2() !== "Foo") {
|
||
|
throw Error("Unexpected");
|
||
|
}
|
||
|
});
|
||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVuZGxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZmlsZTovLy9Vc2Vycy9ra2VsbHkvZ2l0aHViL2Rlbm8vdGVzdHMvc3ViZGlyL3ByaW50X2hlbGxvLnRzIiwiZmlsZTovLy9Vc2Vycy9ra2VsbHkvZ2l0aHViL2Rlbm8vdGVzdHMvc3ViZGlyL3N1YmRpcjIvbW9kMi50cyIsImZpbGU6Ly8vVXNlcnMva2tlbGx5L2dpdGh1Yi9kZW5vL3Rlc3RzL3N1YmRpci9tb2QxLnRzIiwiZmlsZTovLy9Vc2Vycy9ra2VsbHkvZ2l0aHViL2Rlbm8vdGVzdHMvMDA1X21vcmVfaW1wb3J0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7SUFBQSxTQUFnQixVQUFVO1FBQ3hCLE9BQU8sQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLENBQUM7SUFDdkIsQ0FBQztJQUZELGdDQUVDOzs7OztJQ0FELFNBQWdCLFVBQVU7UUFDeEIsT0FBTyxLQUFLLENBQUM7SUFDZixDQUFDO0lBRkQsZ0NBRUM7SUFFRCxTQUFnQixXQUFXO1FBQ3pCLDJCQUFVLEVBQUUsQ0FBQztJQUNmLENBQUM7SUFGRCxrQ0FFQzs7Ozs7SUNORCxTQUFnQixTQUFTO1FBQ3ZCLE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQztJQUZELDhCQUVDO0lBRUQsU0FBZ0IsV0FBVztRQUN6QixPQUFPLG9CQUFVLEVBQUUsQ0FBQztJQUN0QixDQUFDO0lBRkQsa0NBRUM7S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