Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested sandboxes fail at simCustomizationLevel >= 3 #17

Open
LinqLover opened this issue Mar 19, 2021 · 2 comments
Open

Nested sandboxes fail at simCustomizationLevel >= 3 #17

LinqLover opened this issue Mar 19, 2021 · 2 comments
Labels
bug Something isn't working upstream

Comments

@LinqLover
Copy link
Owner

Minimal example:

Sandbox evaluate: [Sandbox evaluate: [Sandbox evaluate: [6 * 7]]].

Expected result: 42.
Actual result: Error: Improper store into indexable object

The error is caused by the simulation of a failing primitive which is not possible at the moment because the primitiveFailToken is simulation-intransparent. This needs to be addressed and redesigned in Trunk. See: [squeak-dev] Re: Two new curious Context/primitive questions :-)

@LinqLover LinqLover added bug Something isn't working upstream labels Mar 19, 2021
@LinqLover
Copy link
Owner Author

By the way: When writing regression tests, also create a regression test for

[Simulator evaluate: [Error signal]] on: Error do: [#foo].

@LinqLover
Copy link
Owner Author

Here is a third one (not yet working):

(Context runSimulated: [self error]) on: Error do: [].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

1 participant