Skip to content

xsbug: "Break: (host): dead strip!" #141

@lll000111

Description

@lll000111

What does this error mean?

I now "XS Conformance" doc says

The XS linker can dead strip ECMAScript built-ins that Moddable apps do not use.

but I don't see what this has to do with getting an exception. Checking xs/tools/xsl.c I see this indeed seems to be linked to this feature (code is behind if (linker->stripping) {...}). It's a bit too hard for me to follow what the many, many fxDeadStrips in mc.xs.c do though. &mdash EDIT: I understand the purpose of that function now but that's just an aside.

Smallest example, I get the error in a much larger context:

const RECIPE_RULE_PROPERTIES = (() => {
  const rules = [{itemprop: 'name'}];

  return new Map(rules.map(o => [o.itemprop, {
    valueType: 'string',
    optional: true
  }]));
})();

trace(RECIPE_RULE_PROPERTIES);

PS: By the way, I ran into this issue while attempting to build a minimal test case for issue #140

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions