Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Problem running ls test #106

@fronkers

Description

@fronkers

When trying to run my test for ls I get this error. I'm not sure if it's a problem with the filesystem or a problem with my code/test.

ERROR AS100: Operation not supported.

         let child = this.children[i];
                     ~~~~~~~~~~~~~

in packages/assemblyscript/assembly/wasa/mock/fs/fs.ts(174,24)

ERROR TS2339: Property 'path' does not exist on type '~lib/number/I32'.

         files.push(new DirectoryEntry(path.basename(child.path), child.type, child.size))
                                                           ~~~~

in packages/assemblyscript/assembly/wasa/mock/fs/fs.ts(175,62)

ERROR TS2339: Property 'type' does not exist on type '~lib/number/I32'.

         files.push(new DirectoryEntry(path.basename(child.path), child.type, child.size))
                                                                        ~~~~

in packages/assemblyscript/assembly/wasa/mock/fs/fs.ts(175,75)

ERROR TS2339: Property 'size' does not exist on type '~lib/number/I32'.

         files.push(new DirectoryEntry(path.basename(child.path), child.type, child.size))
                                                                                    ~~~~

in packages/assemblyscript/assembly/wasa/mock/fs/fs.ts(175,87)

There was a compilation error when trying to create the wasm binary for file: packages/ash/assembly/tests/ls.spec.ts.
Error: Compile error
at Object.main (/Users/franklopez/wasmos/node_modules/assemblyscript/cli/asc.js:477:21)
at /Users/franklopez/wasmos/node_modules/as-pect/lib/cli/run.js:114:27
at Array.forEach ()
at Object.run (/Users/franklopez/wasmos/node_modules/as-pect/lib/cli/run.js:113:36)
at Object.asp (/Users/franklopez/wasmos/node_modules/as-pect/lib/cli/index.js:61:19)
at Object. (/Users/franklopez/wasmos/node_modules/as-pect/bin/asp:2:32)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions