| 822 | } |
| 823 | |
| 824 | bool FLEncodeApplyingJSONDelta(FLValue old, FLSlice jsonDelta, FLEncoder encoder) FLAPI { |
| 825 | try { |
| 826 | Encoder *enc = encoder->fleeceEncoder.get(); |
| 827 | if (!enc) |
| 828 | FleeceException::_throw(EncodeError, "FLEncodeApplyingJSONDelta cannot encode JSON"); |
| 829 | JSONDelta::apply(old, jsonDelta, false, *enc); |
| 830 | return true; |
| 831 | } catch (const std::exception &x) { |
| 832 | encoder->recordException(x); |
| 833 | return false; |
| 834 | } |
| 835 | } |
no test coverage detected