More built-in constants; Get/set parsing fixes; I64.toF64 fixes

This commit is contained in:
dcodeIO
2018-01-02 21:41:25 +01:00
parent 2b182b505e
commit 1221ff129d
14 changed files with 448 additions and 47 deletions

View File

@ -34,7 +34,6 @@ namespace pson {
export declare function onDouble(value: f64): void;
export declare function onString(offset: usize, length: u32): void;
export declare function onBinary(offset: usize, length: u32): void;
export declare function onTruncated(): void;
}
var offset: usize = 0;
@ -43,8 +42,7 @@ export function decode(length: usize): void {
offset = 0;
while (offset < length)
decodeValue();
if (offset != length)
pson.onTruncated();
assert(offset == length);
}
function decodeValue(): void {