Files
rust_browser/tests/external/js262/fixtures/promise-double-resolve.js
Zachary D. Rowitsch 3edcd53fe8 Add Phase 5 JS262 conformance harness with 99 test cases
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>
2026-02-20 17:02:23 -05:00

8 lines
138 B
JavaScript

var p = new Promise(function(resolve) {
resolve("first");
resolve("second");
});
p.then(function(val) {
console.log(val);
});