[performance] Object.assign() should be avoided
Root Cause
For jsonPath, Object.assign() looks shorter but is very slow compared with property assignment.
Workaround
Use property assignment instead. It is about 3 times faster than Object.assign()
let jsonPath = [];
jsonPath.errors = [];
jsonPath.recoveryMethod = "undefined";
let obj = new MyClass(jsonObj, jsonPath);