mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-17 17:01:37 +00:00
unify runtime header
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user