Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

React tests failed with: FATAL ERROR: v8::FromJust: Maybe value is Nothing. #132

Open
abodalevsky opened this issue Oct 12, 2016 · 1 comment
Assignees

Comments

@abodalevsky
Copy link

  • Version:v7.0.0-pre
  • Platform: Win x64 v 10.0.10240
  • Subsystem:

I tried to run React test set and it failed with error FATAL ERROR: v8::FromJust: Maybe value is Nothing. The full stack trace is in the attachment. chakra_error.txt
This test on node/v8 passed without issue.

Next I've tried to run the only test that fails: src\renderers\shared\hooks__tests_\ReactComponentTreeHook-test.native.js_

I haven't got error output like in the attachment, but execution was terminated unexpectedly. And again the test passed successfully on node/v8.

There is the test that terminates execution:

 it('reports a zero as a child', () => {
      var element = <Text>{0}</Text>;
      var tree = {
        displayName: 'Text',
        children: [{
          displayName: 'RCText',
          children: [{
            displayName: '#text',
            text: '0',
          }],
        }],
      };
      assertTreeMatches([element, tree]);
    });

To reproduce the issue:
git clone git@github.com:facebook/react.git
Before to install dependency modify package.json to accept node v 7.0

"devEngines": {
    "node": "4.x || 5.x || 6.x || 7.x",
    "npm": "2.x || 3.x"
  },
npm install
npm install -g jest-cli
jest src\renderers\shared\hooks\__tests__\ReactComponentTreeHook-test.native.js
@kunalspathak
Copy link
Member

Thanks @abodalevsky for reporting. We will investigate.

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

3 participants