blob: c548d57185498a736fd5f8bf6073e98e890cb229 [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
import {throwError} from "moduleThrowAnError.js";
try
{
throwError();
}
catch(e)
{
let index = e.stack.indexOf("moduleThrowAnError.js");
if(index == -1)
{
WScript.Echo("Fail - url not in stack for module error");
}
else
{
WScript.Echo("Pass");
}
}