hyperstack-org / hyperstack-org/hyperstack

Operation's steps are duplicated after the Operation class has been reloaded

オープン
#301 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
JavaScript
スター
538
フォーク
41
PR マージ指標
30日以内にマージされた PR はありません

説明

Operation classes after reloading in the browser keep previously defined steps.

Example:
I started from a file with the following code:
```
class TestOperation < Hyperstack::Operation
step { puts "#{self} first step" }
end
```
and after the execution of the `TestOperation.run` I got:
```
# first step
```

Then I update the file having changed the step:
```
class TestOperation < Hyperstack::Operation
step { puts "#{self} new first step" }
end
```
and after the hotloader reloaded the file I executed `TestOperation.run` and got:
```
# first step
# new first step
```
while expected output should contain only the second line
```
# new first step
```

Hyperstack: branch [c0f18b0] / 1.0.alpha1.5.
Opal: 0.11.4
Browsers: Firefox 66.0.3 (64-bit), Chrome 79.0.3945.130 (Official Build) (64-bit)

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。