unify runtime header

This commit is contained in:
dcode
2019-04-08 23:22:13 +02:00
parent 8ec51423ca
commit c16c19e18d
152 changed files with 7726 additions and 7703 deletions

View File

@ -236,7 +236,7 @@ tests.forEach(filename => {
let exports = {};
function getString(ptr) {
const RUNTIME_HEADER_SIZE = exports[".capabilities"] & 2 ? 16 : 8;
const RUNTIME_HEADER_SIZE = 16;
if (!ptr) return "null";
var U32 = new Uint32Array(exports.memory ? exports.memory.buffer : memory.buffer);
var U16 = new Uint16Array(exports.memory ? exports.memory.buffer : memory.buffer);