Skip to content

Commit 385409e

Browse files
BickfordAAidan Bickford
and
Aidan Bickford
authored
Add debug type for Module Namespace (#6718)
* Add debug type for Module Namespace (and Add name to contribution agreement) Co-authored-by: Aidan Bickford <[email protected]>
1 parent 153892e commit 385409e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ContributionAgreement.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ This agreement has been signed by:
4141
|Evgeniy Istomin|MadProbe|
4242
|Wenlu Wang| Kingwl|
4343
|Kevin Cadieux|kevcadieux|
44+
|Aidan Bickford| BickfordA|

lib/Jsrt/JsrtDebugUtils.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//-------------------------------------------------------------------------------------------------------
22
// Copyright (C) Microsoft. All rights reserved.
3+
// Copyright (c) 2021 ChakraCore Project Contributors. All rights reserved.
34
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
45
//-------------------------------------------------------------------------------------------------------
56

@@ -215,6 +216,11 @@ void JsrtDebugUtils::AddPropertyType(Js::DynamicObject * object, Js::IDiagObject
215216
addDisplay = true;
216217
break;
217218

219+
case Js::TypeIds_ModuleNamespace:
220+
JsrtDebugUtils::AddPropertyToObject(object, JsrtDebugPropertyId::type, scriptContext->GetLibrary()->GetModuleTypeDisplayString(), scriptContext);
221+
addDisplay = true;
222+
break;
223+
218224
case Js::TypeIds_Enumerator:
219225
case Js::TypeIds_HostDispatch:
220226
case Js::TypeIds_UnscopablesWrapperObject:

0 commit comments

Comments
 (0)