blob: 940c5a12c4b6fac7a5dfe8adcec3196e84e0edc3 [file]
//-------------------------------------------------------------------------------------------------------
// 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 testFirstChanceException() {
var formatter = new Intl.NumberFormat("INVALID CURRENCY CODE");
}
try {
testFirstChanceException();
}
catch (ex) {
WScript.Echo(TrimStackTracePath(ex.stack));
}