FLUID-6478: fluid.freezeRecursive should bailout with framework diagnostic on exceeding recursion depth through circularity or other cause

Metadata

Source
FLUID-6478
Type
Improvement
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Antranig Basman
Reporter
Antranig Basman
Created
2020-03-16T13:35:49.743-0400
Updated
2024-07-18T07:45:38.265-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Framework

Description

Many core framework utilities consuming JSON structures, such as fluid.copy and options merging in general, have a configurable maximum recursion depth, via the parameter fluid.strategyRecursionBailout, which is helpful in providing a readable framework diagnostic rather than memory exhaustion or some other bare JS failure. We should extend this behaviour to the commonly used utility fluid.freezeRecursive also.

Comments

  • Cindy Li commented 2020-03-16T20:25:28.167-0400

    The pull request that fixes this issue has been merged into the project repo master branch at this commit.