Skip to content

Commit

Permalink
システム変数のforceClose/useDebugを__forceClose/__useDebugに変更 #155
Browse files Browse the repository at this point in the history
  • Loading branch information
kujirahand committed May 3, 2024
1 parent 3d9bdf2 commit 64fefaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core
4 changes: 2 additions & 2 deletions src/plugin_browser_system.mts
Expand Up @@ -9,8 +9,8 @@ export default {
// v3.3.74以降 plguin_system.mjsと挙動が同じになった
// デバッグモードでなければ例外を投げることでプログラムを終了させる
if (sys && sys.__v0) {
sys.__v0.forceClose = true
if (!sys.__v0.useDebug) { throw new Error('__終わる__') }
sys.__setSysVar('__forceClose', true)
if (!sys.__getSysVar('__useDebug')) { throw new Error('__終わる__') }
} else {
throw new Error('__終わる__')
}
Expand Down

0 comments on commit 64fefaa

Please sign in to comment.