tonylukasavage / triple

REPL for Titanium
MIT License
96 stars 21 forks source link

context reset timing issue #74

Closed tonylukasavage closed 10 years ago

tonylukasavage commented 10 years ago

Accessing variables too quickly after a context reset will still make them accessible, as the reset takes a moment to take effect, specifically noticeable on android:

≫ triple -p android
[launching app]
> var foo = 123
undefined
> foo
123
> .clear
> foo
123
> foo
ReferenceError: foo is not defined
> 

We should delay showing the prompt until it is safe to start accessing variables on the context again.