scan.js 654 B

123456789101112131415161718192021222324252627
  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 write(args)
  6. {
  7. WScript.Echo(args);
  8. }
  9. var result;
  10. try
  11. {
  12. result = (String.fromCharCode(11) == '\v');
  13. } catch (ex)
  14. {
  15. result = "Exception";
  16. }
  17. write(result);
  18. try
  19. {
  20. eval("var v\u0061r = false;")
  21. }
  22. catch(ex)
  23. {
  24. WScript.Echo(ex.message);
  25. }