Skip to content

[Issue 230 / PR 247] Defect 004 - Faker Helpers docs multiple arrow callback example fails in runtime #258

Description

@eviltester

Defect 004 - Faker Helpers docs multiple arrow callback example fails in runtime

Severity: Medium

Status: Confirmed repeatable

Summary

The published Faker Helpers docs include helpers.multiple(() => this.person.firstName(), { count: 3 }), but the deployed generator rejects the arrow callback syntax as unsafe/complex.

Steps to Reproduce

  1. Open the deployed generator.
  2. Click Edit as Text.
  3. Paste:
Names
helpers.multiple(() => this.person.firstName(), { count: 3 })
  1. Click Preview.

Expected Result

The documented example should generate an array of three first names, or the docs should show syntax supported by the deployed parser.

Actual Result

The example fails validation and does not generate rows.

Evidence

Notes for Fix Agent

This may be an intentional parser safety restriction. If so, docs should avoid arrow callbacks and this.* examples that cannot execute in the deployed generator.

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