js-slang icon indicating copy to clipboard operation
js-slang copied to clipboard

Full JavaScript: promises are unpacked automatically by REPL

Open martin-henz opened this issue 1 year ago • 0 comments

When a Full JavaScript program evaluates to a promise, it is automatically unpacked by the REPL.

Screenshot 2024-02-15 at 9 44 11 AM

The display function correctly displays the promise object in orange. The REPL should also display the promise object.

The program:

let promise = new Promise(
    (resolve, reject) => resolve("done"));
promise;

martin-henz avatar Feb 15 '24 01:02 martin-henz