Skip to content

Use of >>> operator gives different results for same expression #936

Description

@goepi

I am working with bitwise operators. However, when I use the >>> operator I do not always get the same result:

Here is my bash session:

$ ts-node -v
v8.5.4
$ ts-node
> -5 >>> 0
4294967291
> -5 >>> 0
31
> -5 >>> 0
undefined
>

What is going on here?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions