blob: 0562f4bb6f17a9ad5a39c58a9d58724dd4f8117b [file]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
#pragma once
namespace Js
{
// These function needs to be in INL file for static lib
inline bool JavascriptBoolean::Is(Var aValue)
{
return JavascriptOperators::GetTypeId(aValue) == TypeIds_Boolean;
}
inline JavascriptBoolean* JavascriptBoolean::FromVar(Js::Var aValue)
{
AssertMsg(Is(aValue), "Ensure var is actually a 'JavascriptBoolean'");
return static_cast<JavascriptBoolean *>(RecyclableObject::FromVar(aValue));
}
} // namespace Js