addexception.js 545 B

1234567891011121314151617
  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. try {
  6. eval("((x = this));");
  7. } catch(ex) {
  8. }
  9. try {
  10. // This will throw an exception.
  11. eval("(524288 += x);");
  12. } catch(ex) {
  13. }
  14. WScript.Echo("DONE");