Skip to content

Nested interpolation allows for circular references. Consider adding better logging or marking to prevent infinite loop #13

@JessicaSachs

Description

@JessicaSachs
describe('Interpolating string with circular reference causes infinite loop', function (expect) { 
  const str = '{{val}}';
  const data = { val: 'My cool {{val}}' };
  Easybars(str, data); // max callstack exceeded
  expect(true).toBe(true);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions