Skip to content

Commit d3e760b

Browse files
committed
executeCodeに命名を合わせた
1 parent 7cce705 commit d3e760b

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/core/index.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -655,16 +655,14 @@ export class Core {
655655
}
656656
}
657657

658-
async executeSandboxScenario(scenarioObjects) {
658+
async executeScenario(scenarioObjects) {
659659
const snap = this.scenarioManager.snapshot()
660660
try {
661661
this.scenarioManager.setScenario(scenarioObjects)
662-
while (this.scenarioManager.hasNext()) {
663-
await this.runScenario()
664-
}
662+
await this.runScenario()
665663
return { success: true }
666664
} catch (error) {
667-
console.error('Sandbox scenario error:', error)
665+
console.error('scenario error:', error)
668666
return {
669667
success: false,
670668
error: error.message || 'Unknown error',
@@ -753,7 +751,7 @@ export class Core {
753751
deleteSave: (slot) => this.deleteSave(slot),
754752
},
755753
sandbox: {
756-
execute: this.executeSandboxScenario.bind(this),
754+
execute: this.executeScenario.bind(this),
757755
},
758756
}
759757
}

0 commit comments

Comments
 (0)