Skip to content
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

Update _emitfulltype for Bytes to export lengths if Paths are passed in #1031

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wbarnha
Copy link

@wbarnha wbarnha commented Apr 26, 2023

While exporting Bytes(this.insert_name_here), I encountered cannot represent an object: this['insert_name_here'] since _emitfulltype can't support Path objects being passed in as lengths. While this isn't the most graceful solution, I figured it'd be worth opening discussion on this. Are there any other classes that have similar methods that should have their _emitfulltype methods needing to be similarly updated as well?

…in as lengths

While exporting `Bytes(this.insert_name_here)`, I encountered `cannot represent an object: this['insert_name_here']` since `_emitfulltype` can't support `Path` objects being passed in as lengths. While this isn't the most graceful solution, I figured it'd be worth opening discussion on this. Are there any other classes that have similar methods that should have their `_emitfulltype` methods needing to be similarly updated as well?
@arekbulski
Copy link
Member

I will not accept this PR for two simple reasons. First being, I totally dont understand how KSY files work. Unless the grey cat on the tree himself sanctions this, then maybe. Second is its hackey as heck.

@wbarnha
Copy link
Author

wbarnha commented Apr 27, 2023

I totally agree at how disgusting it is, I'd be happy to change that when needed.

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.

None yet

2 participants