ampproject / ampproject/worker-dom

Debug: Warn on unsupported properties with Proxy

Open
#137 6 comments 0 reactions 0 assignees View on GitHub
mutation
Dominant language
TypeScript
Stars
3.3k
Forks
154
PR merge metrics
No merged PRs in 30d

Description

For debug mode only, it might be nice to add a JS proxy that warns when setting unsupported properties. E.g. with a short-link to new issue template for `worker-dom`.

Thinking about the easiest way to integrate this. If we go with the separate debugging module fetched at runtime, we'd need one for the worker and one for the main-thread. Maybe another output variant is justified? 🤔

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the worker-dom debug-mode integration and how runtime modules or output variants are currently produced. Compare the separate debugging-module options for the worker and main thread, and define the supported-property warning behavior and issue-template link. Done requires an agreed integration approach and debug-only behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.