@memlab/core
Advanced tools
Comparing version 1.1.33 to 1.1.34
@@ -199,2 +199,3 @@ /** | ||
skipBrowserCloseWait: boolean; | ||
simplifyCodeSerialization: boolean; | ||
constructor(options?: ConfigOption); | ||
@@ -201,0 +202,0 @@ private initInternalConfigs; |
@@ -204,2 +204,5 @@ "use strict"; | ||
this.skipBrowserCloseWait = false; | ||
// if true, serialized leak trace will have a simplified representation | ||
// for code object, which could be large and cause OOM during serualization | ||
this.simplifyCodeSerialization = !Constant_1.default.isFB; | ||
} | ||
@@ -206,0 +209,0 @@ // initialize configurable parameters |
@@ -263,3 +263,5 @@ "use strict"; | ||
const key = 'variables with non-number values in closure scope chain'; | ||
info[key] = JSONifyNode(edge.toNode, args, options); | ||
info[key] = Config_1.default.simplifyCodeSerialization | ||
? JSONifyNodeOneLevel(edge.toNode) | ||
: JSONifyNode(edge.toNode, args, options); | ||
} | ||
@@ -271,3 +273,5 @@ else if (edge.name_or_index === 'script_or_debug_info') { | ||
const key = filterJSONPropName(edge.name_or_index); | ||
info[key] = JSONifyNode(edge.toNode, args, options); | ||
info[key] = Config_1.default.simplifyCodeSerialization | ||
? JSONifyNodeOneLevel(edge.toNode) | ||
: JSONifyNode(edge.toNode, args, options); | ||
} | ||
@@ -274,0 +278,0 @@ return null; |
{ | ||
"name": "@memlab/core", | ||
"version": "1.1.33", | ||
"version": "1.1.34", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "memlab core libraries", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
752985
16870