known_globals.js 617 B

1234567891011121314151617181920
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. function isKnownGlobal(name) {
  6. var knownGlobals = [
  7. "isKnownGlobal",
  8. "SCA",
  9. "ImageData",
  10. "read",
  11. "WScript",
  12. "print",
  13. "read",
  14. "readbuffer",
  15. "readline",
  16. "console",
  17. ];
  18. return knownGlobals.includes(name);
  19. }