Skip to content

Commit 343ca0b

Browse files
committed
fix: #159
1 parent 167aa92 commit 343ca0b

File tree

4 files changed

+598
-57
lines changed

4 files changed

+598
-57
lines changed

assembly/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ export namespace JSON {
617617
if (isDefined(type.__DESERIALIZE)) {
618618
const out = changetype<nonnull<T>>(dst || __new(offsetof<nonnull<T>>(), idof<nonnull<T>>()));
619619
// @ts-ignore: Defined by transform
620-
if (isNullable<T>() && isDefined(type.__INITIALIZE)) out.__INITIALIZE();
620+
if (isDefined(type.__INITIALIZE)) out.__INITIALIZE();
621621
// @ts-ignore: Defined by transform
622622
return out.__DESERIALIZE(srcStart, srcEnd, out);
623623
} else if (type instanceof Map) {

0 commit comments

Comments
 (0)