Introduce a Test262-inspired conformance test suite with parallel runner, TOML manifest, and policy enforcement (pass/known_fail/skip). Covers language core (variables, expressions, functions, control flow, types), DOM bindings, events, Promises, scheduling, and 20 known-fail cases documenting unsupported features (for/while loops, try/catch, arrays, objects, arrow functions, etc.). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
15 lines
245 B
JavaScript
15 lines
245 B
JavaScript
var x = 2;
|
|
if (x === 1) {
|
|
console.log("one");
|
|
} else {
|
|
if (x === 2) {
|
|
console.log("two");
|
|
} else {
|
|
if (x === 3) {
|
|
console.log("three");
|
|
} else {
|
|
console.log("other");
|
|
}
|
|
}
|
|
}
|