-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access all declared variables in global namespace in globalThis #49619
Comments
Would you consider this use case as well along with access to finding declarations? #47099 (comment) |
Can you give a specific example of code and what would be the expected behavior? |
Read up on the built-in inspector module, it probably does what you want. Some assembly required. |
@bnoordhuis adding to this, it seems like/ behaviour none of the I am seeing
|
What is the problem this feature will solve?
Access all declared variables (primitives or objects) in
global
namespace inglobalThis
. It will give access to allconst
's,var
's,function
's,let
's declarations in onepre-defined
,read-only
globalThis.global
definition. Currently, it is not accessible. Only global declarations of node.js environments are available.`What is the feature you are proposing to solve the problem?
Access all declared variables (primitives or objects) in
global
namespace inglobalThis
. It will give access to allconst
's,var
's,function
's,let
's declarations in onepre-defined
,read-only
globalThis.global
definition.What alternatives have you considered?
None. The only other alternative is to write a javascript file
regex
parser
to get all declarations ofconst
's,var
's,function
's,let
's declarationsThe text was updated successfully, but these errors were encountered: