sourceInfo_13.js 620 B

12345678910111213141516171819202122
  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. //
  6. // Test uncaught exception source info
  7. //
  8. function dummy() {
  9. // do nothing
  10. }
  11. dummy();
  12. var obj = {
  13. get foo() { // This needs -Version:3
  14. dummy();
  15. throw 123;
  16. dummy();
  17. }
  18. };
  19. obj.foo;
  20. dummy();