← back to v132 · explicit-compile-hints-with-magic-comments
conformance · v132
v132 · explicit-compile-hints-with-magic-comments — conformance probe
5 assertions drawn from the spec. Each is a single contract the spec text makes. Pass/fail reflects what this browser executed; blocked means the contract was not run because it needs user mediation, hardware, or another unavailable precondition. Open the page in Chrome stable / canary / Firefox / Safari to compare.
0
pass
0
fail
0
blocked
5
total
| id | contract | kind | verdict | detail |
|---|---|---|---|---|
script-parses-with-magic-comment |
A script body containing the //# allFunctionsCalledOnLoad magic comment parses without error — the comment is an opt-in hint, not new syntax. spec ↗ | script | … | |
script-execution-unchanged-by-hint |
Adding the magic comment does not change the function's observable behaviour — it's a compile hint only. spec ↗ | script | … | |
magic-comment-is-comment |
The magic comment is a JS comment so it is ignored by older engines that don't recognise it. | script | … | |
function-class-still-works |
Function constructor still works (precondition for evaluating the magic-comment script body). | typeof | … | |
magic-comment-doesnt-throw |
A script consisting only of the magic comment does not throw at parse time. | script | … |