Skip to content

Circular Reference Serialization in JS (and Java?) Not Handled Gracefully #2

@MTrop

Description

@MTrop

Take the following script/module:

action general a_quit named "quit";

world
{
	onAction(a_quit)
	{
		quit;
	}

	start()
	{
		a = [];
		b = [a];
		listadd(a, b);
	}
}

State-saving this structure in Java more-or-less works (?) but the JSON serializer dies with a stack overflow. Must find a way to handle better than just an error message.

Issue is considered low priority - this should not come up much in most modules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIntroduced unintentional problem.low priorityBugs labeled this are not considered the same priority as regular bugs - user-created rare issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions