Skip to content

Add debug type for Module Namespace #6718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ContributionAgreement.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ This agreement has been signed by:
|Evgeniy Istomin|MadProbe|
|Wenlu Wang| Kingwl|
|Kevin Cadieux|kevcadieux|
|Aidan Bickford| BickfordA|
6 changes: 6 additions & 0 deletions lib/Jsrt/JsrtDebugUtils.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Copyright (c) 2021 ChakraCore Project Contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

Expand Down Expand Up @@ -215,6 +216,11 @@ void JsrtDebugUtils::AddPropertyType(Js::DynamicObject * object, Js::IDiagObject
addDisplay = true;
break;

case Js::TypeIds_ModuleNamespace:
JsrtDebugUtils::AddPropertyToObject(object, JsrtDebugPropertyId::type, scriptContext->GetLibrary()->GetModuleTypeDisplayString(), scriptContext);
addDisplay = true;
break;

case Js::TypeIds_Enumerator:
case Js::TypeIds_HostDispatch:
case Js::TypeIds_UnscopablesWrapperObject:
Expand Down