| 123456789101112131415161718192021222324252627282930 |
- //-------------------------------------------------------------------------------------------------------
- // Copyright (C) Microsoft. All rights reserved.
- // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
- //-------------------------------------------------------------------------------------------------------
- // Tests that internal stack frames from Intl are hidden from the debugger when an exception is thrown.
- if (this.WScript) { WScript.LoadScriptFile("../UnitTestFramework/TrimStackTracePath.js"); }
- function testCallback() {
- var array =
- [
- {
- toString: function ()
- {
- throw new Error('Throwing...');
- }
- },
- 5
- ]
- var c = new Intl.Collator();
- array.sort(c.compare);
- }
- try {
- testCallback();
- }
- catch (ex) {
- WScript.Echo(TrimStackTracePath(ex.stack));
- }
|