Skip to content

{{#each}} without any params causes error #18673

@chancancode

Description

@chancancode

This line broke the inspector's test:

  - broccoliBuilderErrorStack: TypeError: /home/runner/work/ember-inspector/ember-inspector/ember-inspector/tests/ember_debug/view-debug-test.js: Cannot read property 'type' of undefined
    at BlockStatement (/home/runner/work/ember-inspector/ember-inspector/node_modules/ember-source/dist/ember-template-compiler.js:10590:28)
    at visitNode (/home/runner/work/ember-inspector/ember-inspector/node_modules/ember-source/dist/ember-template-compiler.js:7537:16)
    at visitArray (/home/runner/work/ember-inspector/ember-inspector/node_modules/ember-source/dist/ember-template-compiler.js:7628:20)
    at visitKey (/home/runner/work/ember-inspector/ember-inspector/node_modules/ember-source/dist/ember-template-compiler.js:7605:7)
    at visitNode (/home/runner/work/ember-inspector/ember-inspector/node_modules/ember-source/dist/ember-template-compiler.js:7559:9)
    at traverse (/home/runner/work/ember-inspector/ember-inspector/node_modules/ember-source/dist/ember-template-compiler.js:7669:5)
    at preprocess (/home/runner/work/ember-inspector/ember-inspector/node_modules/ember-source/dist/ember-template-compiler.js:8708:9)
    at precompile (/home/runner/work/ember-inspector/ember-inspector/node_modules/ember-source/dist/ember-template-compiler.js:4538:38)
    at precompile (/home/runner/work/ember-inspector/ember-inspector/node_modules/ember-source/dist/ember-template-compiler.js:11513:37)
    at compileTemplate (/home/runner/work/ember-inspector/ember-inspector/node_modules/babel-plugin-htmlbars-inline-precompile/index.js:91:28)

This was caused by this line in the inspector's tests. While it's an invalid usage and you should probably get some error either at runtime or build time, the way it fails now is unexpected.

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