Skip to content

Freeze on incomplete for loop #1387

Open

Description

@decorator-factory

It seems like #411 is still a problem.

Steps to reproduce:

  1. Go to https://lit.dev/tutorials/working-with-lists/#4
  2. Use this for the render method:
  render () {
    for (
  }
  1. The tab freezes

I'm on Firefox 133.0.3.

Maybe it would be reasonable to not update the playground if TypeScript emits an error, if it doesn't have a good way to communicate whether it's a syntax error or a type checking error?

Activity

  1. decorator-factory commented on Dec 27, 2024

    @decorator-factory
    Author

    I just checked the same conditions in Chromium, and the whole tab doesn't lock up.

    The Origin-Agent-Cluster header mentioned in the old issue is not supported by Firefox and Safari and is still "experimental".

  2. e111077 commented on Feb 13, 2025

    @e111077
    Collaborator

    This is tricky because infinite loops are hard to detect in the setup we have for https://github.com/google/playground-elements which is what we use under the hood.

    FWIW people that run into this issue via google – in order to kill the process you need to close every tab across your windows that has the https://lit.dev domain open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions