Skip to content

Problems parsing numbers written with the _ format #32

@ralphtheninja

Description

@ralphtheninja

tinyify has some problems parsing numbers written like 10_000:

SyntaxError: Unexpected token name «_000», expected punc «,» while parsing file: /home/lms/src/peermaps/peermaps-web/storage/http.js
    at Z.get (/home/lms/src/peermaps/peermaps-web/node_modules/uglifyify/node_modules/terser/dist/bundle.min.js:1:463)
    at Readable.errorExit (/home/lms/src/peermaps/peermaps-web/node_modules/browserify/bin/cmd.js:79:27)
    at Readable.emit (node:events:526:28)
    at Labeled.<anonymous> (/home/lms/src/peermaps/peermaps-web/node_modules/read-only-stream/index.js:28:44)
    at Labeled.emit (node:events:526:28)
    at Labeled.<anonymous> (/home/lms/src/peermaps/peermaps-web/node_modules/stream-splicer/index.js:130:18)
    at Labeled.emit (node:events:526:28)
    at Deps.<anonymous> (/home/lms/src/peermaps/peermaps-web/node_modules/stream-splicer/index.js:130:18)
    at Deps.emit (node:events:526:28)
    at DuplexWrapper.<anonymous> (/home/lms/src/peermaps/peermaps-web/node_modules/module-deps/index.js:414:22)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions