Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce strict field initialization #1349

Merged
merged 10 commits into from Jun 30, 2020
4 changes: 2 additions & 2 deletions src/compiler.ts
Expand Up @@ -9420,8 +9420,8 @@ export class Compiler extends DiagnosticEmitter {
let numParameters = parameterTypes.length;
let operands = new Array<ExpressionRef>(1 + numParameters);
operands[0] = module.local_get(0, nativeSizeType);
for (let i = 0; i < numParameters; ++i) {
dcodeIO marked this conversation as resolved.
Show resolved Hide resolved
operands[i + 1] = module.local_get(i + 1, parameterTypes[i].toNativeType());
for (let i = 1; i < numParameters; ++i) {
operands[i] = module.local_get(i, parameterTypes[i - 1].toNativeType());
}
stmts.push(
module.local_set(0,
Expand Down