8000 Number bounds when compiled to javascript · Issue #20 · Naddiseo/dart-sprintf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Number bounds when compiled to javascript #20
Open
@Naddiseo

Description

@Naddiseo

It seems number compiled to javascript (platform node/firefox/chrome) aren't using 53bit numbers for int anymore, so formatting with x or o or # now fail.

|%x|%X| -1 [E]                                                                                                                                     
  Expected: '|1fffffffffffff|1FFFFFFFFFFFFF|'
    Actual: '|ffffffff|FFFFFFFF|'
     Which: is different.
            Expected: |1fffffffff ...
              Actual: |ffffffff|F ...
                       ^
             Differ at offset 1

This was found while solving #18 and #12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0