You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All of the following functions fail at runtime with
uncaught exception hilti::rt::InvalidIterator: bound object has expired (/private/tmp/decode.spicy:7:2)
modulefoo;importspicy;globalCS=spicy::Charset::ASCII;# Other charsets seem fine.functionk(){printb" a ".strip().decode(CS);}functionl(){localxs=b" a ";printxs.strip().decode(CS);}functionm(){localxs=b" a ";localys : bytes=xs.strip();printys.decode(CS);}k();l();m();
The text was updated successfully, but these errors were encountered:
`Bytes` inherits constructors from its base class. We previously would
not initialize the internal control block for these constructors so some
operations involving iterators on such `Bytes` instances would have
failed, even thought the controlled object was still valid.
With this patch we always set up the control block, no matter which
constructor is used.
Closes#1390.
(cherry picked from commit 71cff50)
All of the following functions fail at runtime with
The text was updated successfully, but these errors were encountered: