miktam / sizeof

Get size of a JavaScript object
MIT License
301 stars 45 forks source link

Added support for function calculation in a browser environment. #78

Closed miktam closed 1 year ago

miktam commented 1 year ago

Fixes https://github.com/miktam/sizeof/issues/77

There is no built-in JavaScript method to calculate a function's size in the browser environment. The JavaScript engine implementation determines the size of a function in memory, and it can vary significantly between different engines.