Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

[BUG] Browser Solidity compiler crashes on two devs computers. #26

Closed
rickmacgillis opened this issue Sep 2, 2015 · 2 comments
Closed

Comments

@rickmacgillis
Copy link

The browser Solidity compiler crashes when running on Chrome through two different computers. I'm on Windows 10 and my coworker is on Linux. The code in question is as follows.

contract c
{
    function test() public returns(uint8)
    {
        uint8[] testing;
        testing[testing.length++] = 1;
        testing[testing.length++] = 2;
        testing[testing.length++] = 3;

        delete testing[1];

        uint8[] testing1;
        for (uint8 i = 0; i < testing.length; i++) {
            if (0 != testing[i]) {
                testing1[testing1.length++] = testing[i];
            }
        }

        return testing1[0];
    }
}

Steps to reproduce

  1. Create the contract.
  2. Click the "test" button to run the code.
  3. Watch the tab in Chrome crash after hanging for a bit.
@LianaHus
Copy link
Contributor

LianaHus commented Sep 3, 2015

I'll move the issue to solidity repository.

@LianaHus
Copy link
Contributor

LianaHus commented Sep 3, 2015

ethereum/solidity#44

@LianaHus LianaHus closed this as completed Sep 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants