1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
=== tests/cases/conformance/salsa/mod.js ===
// Based on a pattern from adonis
exports.formatters = {}
>exports.formatters = {} : {}
>exports.formatters : {}
>exports : typeof import("tests/cases/conformance/salsa/mod")
>formatters : {}
>{} : {}
=== tests/cases/conformance/salsa/first.js ===
exports = require('./mod')
>exports = require('./mod') : typeof import("tests/cases/conformance/salsa/mod")
>exports : typeof import("tests/cases/conformance/salsa/first")
>require('./mod') : typeof import("tests/cases/conformance/salsa/mod")
>require : any
>'./mod' : "./mod"
exports.formatters.j = function (v) {
>exports.formatters.j = function (v) { return v} : (v: any) => any
>exports.formatters.j : any
>exports.formatters : any
>exports : typeof import("tests/cases/conformance/salsa/first")
>formatters : any
>j : any
>function (v) { return v} : (v: any) => any
>v : any
return v
>v : any
}
=== tests/cases/conformance/salsa/second.js ===
exports = require('./mod')
>exports = require('./mod') : typeof import("tests/cases/conformance/salsa/mod")
>exports : typeof import("tests/cases/conformance/salsa/second")
>require('./mod') : typeof import("tests/cases/conformance/salsa/mod")
>require : any
>'./mod' : "./mod"
exports.formatters.o = function (v) {
>exports.formatters.o = function (v) { return v} : (v: any) => any
>exports.formatters.o : any
>exports.formatters : any
>exports : typeof import("tests/cases/conformance/salsa/second")
>formatters : any
>o : any
>function (v) { return v} : (v: any) => any
>v : any
return v
>v : any
}
=== tests/cases/conformance/salsa/use.js ===
import * as debug from './mod'
>debug : typeof debug
debug.formatters.j
>debug.formatters.j : any
>debug.formatters : {}
>debug : typeof debug
>formatters : {}
>j : any
var one = debug.formatters.o(1)
>one : any
>debug.formatters.o(1) : any
>debug.formatters.o : any
>debug.formatters : {}
>debug : typeof debug
>formatters : {}
>o : any
>1 : 1
|