miktam / sizeof

Get size of a JavaScript object

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] sizeOf of circular structure

Pavel-Lihtarov opened this issue · comments

    const a = {
      prop1: `ssss`,
      b: {}
    };
    a.b = a;
    const sizeOf = sizeof(a);

this code return -1 - it is not correct. In release 1.6.3 it returned 38