Skip to content

Conversation

@kevinoid
Copy link
Contributor

This PR adds two additional global functions provided by JScript in Windows Script Host and specified by Microsoft:

I can confirm both variables are present on both Windows 7 and 10.

Thanks,
Kevin

[CollectGarbage] is a function provided by JScript on the global object
which triggers the garbage collector.  It is required to [work around
ActiveX object retention issues] in some situations.

[CollectGarbage]: https://docs.microsoft.com/en-us/openspecs/ie_standards/ms-es3ex/73a13f4c-72b3-48f3-b2f4-933084ec8716
[work around ActiveX object retention issues]: https://docs.microsoft.com/en-us/office/troubleshoot/excel/jscript-not-shut-down-excel

Signed-off-by: Kevin Locke <[email protected]>
[RuntimeObject] is a function provided by JScript on the global object
for enumerating functions and variables defined in the global scope.

[RuntimeObject]: https://docs.microsoft.com/en-us/openspecs/ie_standards/ms-es3ex/a17cdcdb-ef33-43e0-b269-9634e59b1a00

Signed-off-by: Kevin Locke <[email protected]>
@sindresorhus sindresorhus merged commit 21467a7 into sindresorhus:master Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants