node-chakracore icon indicating copy to clipboard operation
node-chakracore copied to clipboard

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

Open abodalevsky opened this issue 9 years ago • 1 comments

  • 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 [email protected]: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

abodalevsky avatar Oct 12 '16 07:10 abodalevsky

Thanks @abodalevsky for reporting. We will investigate.

kunalspathak avatar Oct 12 '16 16:10 kunalspathak