Skip to content

Unexpected behavior on importing element through moonscript. #33

@vega0

Description

@vega0

dump_core.txt
dump_core.moon.txt

  syncronous_get = http({
    poluchitKontentFaila = function(self, put, segmn)
      put = put:gsub("[/|\\]", "/")
      do
        local kontent = self.kontentfaily[put]
        if kontent then
          return kontent
        end

Unexpected import behavior on moonscript that uses your lpeg library.

  import syncronous_get from http

    --- Получить файл по пути репозитория.
    --@tparam string put путь.
    --@tparam[opt] segmn Пароаметр запроса.
    --@treturn string контент.
    --@function poluchitKontentFaila
    poluchitKontentFaila: (put, segmn) =>
        put = put\gsub "[/|\\]", "/"

        if kontent = @kontentfaily[put]
            return kontent

        @dt, kontent = calltime syncronous_get, @poluchitSsilkyNaFail put, segmn

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