Can Deno list all functions within a script without explicit registration or annotation?
.
For context, here is how you do it for
globalThisObject
Function
Array
Number
parseFloat
parseInt
Boolean
String
Symbol
Date
Promise
RegExp
Error
AggregateError
EvalError
RangeError
ReferenceError
SyntaxError
TypeError
URIError
ArrayBuffer
Uint8Array
......
testFunction1
testFunction2Object.getOwnPropertyNames(globalThis)
.filter((item: string) => typeof (globalThis as any)[item] === "function")
.forEach((funcName: string) => console.log(funcName));Object.getOwnPropertyNames(window)
.filter(item => typeof window[item] === "function")
.forEach(funcName => console.log(funcName));