summaryrefslogtreecommitdiffstats
path: root/devtools/client/jsonview/utils.js
diff options
context:
space:
mode:
authoryami <34216515+kn-yami@users.noreply.github.com>2019-07-30 15:27:59 +0200
committeryami <34216515+kn-yami@users.noreply.github.com>2019-07-30 15:27:59 +0200
commit23e68227a2e3f3946fa4fd5589f338e6b36a6e56 (patch)
treea8ad7e25d26d66b4d8bf0fdd3fda5574f2dce9b8 /devtools/client/jsonview/utils.js
parent3170ee7692ef30ee67f26219b19b2b4115c01a56 (diff)
downloadUXP-23e68227a2e3f3946fa4fd5589f338e6b36a6e56.tar
UXP-23e68227a2e3f3946fa4fd5589f338e6b36a6e56.tar.gz
UXP-23e68227a2e3f3946fa4fd5589f338e6b36a6e56.tar.lz
UXP-23e68227a2e3f3946fa4fd5589f338e6b36a6e56.tar.xz
UXP-23e68227a2e3f3946fa4fd5589f338e6b36a6e56.zip
Issue #1138 - Part 1: refactor the JSON Viewer stream converter
Mozilla Bug 1367894
Diffstat (limited to 'devtools/client/jsonview/utils.js')
-rw-r--r--devtools/client/jsonview/utils.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/devtools/client/jsonview/utils.js b/devtools/client/jsonview/utils.js
index a70afdc68..6ab697c89 100644
--- a/devtools/client/jsonview/utils.js
+++ b/devtools/client/jsonview/utils.js
@@ -96,6 +96,8 @@ exports.exportIntoContentScope = function (win, obj, defineAs) {
Cu.exportFunction(propValue, clone, {
defineAs: propName
});
+ } else {
+ clone[propName] = Cu.cloneInto(propValue, win);
}
}
};