Skip to content

Commit

Permalink
pure=falseの関数を使う時、ローカル変数の書き戻しに失敗する問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kujirahand committed May 23, 2024
1 parent b812945 commit f7c35a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nako_gen.mts
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ export class NakoGen {
funcEnd += '/* 全ての展開されたローカル変数を __self.__locals から受け取る */\n'
for (const v of localVars) {
if (v.js !== 'それ') {
funcEnd += `${v.js} = __self.__locals[${v.str}];\n`
funcEnd += `__self.__varslist[2].set(${v.str}, __self.__locals[${v.str}]);\n`
}
}
}
Expand Down

0 comments on commit f7c35a5

Please sign in to comment.