Skip to content

Right shift operator not supported for target 5.4 #1720

Description

@JesterIruka

Although the tsconfig target is 5.4, I still face the following error:

Right shift operator is not supported for target Lua 5.3. Use >>> instead.

  "tstl": {
    "luaLibImport": "require-minimal",
    "luaBundle": "./dist/server.lua",
    "luaBundleEntry": "./src-ts/index.ts",
    "luaTarget": "5.4",
    "noImplicitSelf": true,
    "sourceMapTraceback": false
  }

Playground: https://typescripttolua.github.io/play#code/5.4/A4JwlgdgLgFAbAAgHxIQJgJRA

Note: LuaJIT works, but I still need LuaFloorDivision, which don't work on JIT, so I can't just change to it.

Image

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