Website

Check-in [8a445efb10]
Login
Overview
Comment:Interpret return values in playground as Int, not Uint.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8a445efb1024c10d511cdb38a73cd0efee6914eb80b23422074e08897f49bdc9
User & Date: robin.hansen on 2021-06-15 13:08:44
Other Links: manifest | tags
Context
2021-06-15
13:14
Increase max-age to one hour. check-in: 2340de5223 user: robin.hansen tags: trunk
13:08
Interpret return values in playground as Int, not Uint. check-in: 8a445efb10 user: robin.hansen tags: trunk
2021-06-11
14:49
Update deploy script for so images will be uploaded. check-in: 61b3c2c35d user: robin.hansen tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Modified src/playground.js from [b7cf953a87] to [1b17755969].

55
56
57
58
59
60
61
62
63
64
    const main = program.instance.exports.main;
    if (typeof main === 'undefined') {
        return "Could not find a word named 'main'";
    }

    main();

    const memView = new Uint32Array(memory.buffer);
    return memView[3].toString(); // First three i32 elements are stack and heap information
}







|


55
56
57
58
59
60
61
62
63
64
    const main = program.instance.exports.main;
    if (typeof main === 'undefined') {
        return "Could not find a word named 'main'";
    }

    main();

    const memView = new Int32Array(memory.buffer);
    return memView[3].toString(); // First three i32 elements are stack and heap information
}