Skip to content

test(javascript): add test for non-enumerable internal properties #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mblsha
Copy link

@mblsha mblsha commented Jul 13, 2025

Needs kaitai-io/kaitai_struct_compiler#318 to work, otherwise expected to fail.

Added comprehensive test to verify that _io, _parent, and _root properties are non-enumerable in JavaScript runtime:

  • Uses existing NestedTypes format to test both root and nested objects
  • Verifies JSON.stringify() excludes internal properties
  • Checks Object.keys() and for...in loops don't include internal props
  • Ensures internal properties still exist and function correctly

Added comprehensive test to verify that _io, _parent, and _root
properties are non-enumerable in JavaScript runtime:

- Uses existing NestedTypes format to test both root and nested objects
- Verifies JSON.stringify() excludes internal properties
- Checks Object.keys() and for...in loops don't include internal props
- Ensures internal properties still exist and function correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant