Skip to content

[...Array(5).keys()] not working in Android #18426

@James2516

Description

@James2516

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

OS: macOS Sierra 10.12.6
Node: 9.8.0
Yarn: 1.5.1
npm: 5.6.0
Watchman: 4.7.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: ^16.3.0-alpha.1 => 16.3.0-alpha.2
react-native: 0.54.2 => 0.54.2

Steps to Reproduce

console.log([...Array(2).keys()]) does not produce [0, 1].

  1. Run https://snack.expo.io/SJT6PCPPZ on Android (works)
  2. Run https://snack.expo.io/H1elODwPb on Android (nothing rendered on screen)
    Additional note: both works on iOS.

Expected Behavior

https://snack.expo.io/H1elODwPb should render data on screen

Actual Behavior

https://snack.expo.io/H1elODwPb renders nothing on screen

Reproducible Demo

see above

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions