Skip to content
This repository was archived by the owner on Jun 6, 2024. It is now read-only.
This repository was archived by the owner on Jun 6, 2024. It is now read-only.

Array literals aren't Arrays #123

@fluidsonic

Description

@fluidsonic

For some reason [] instanceof Array is false when a script is run within Cloudworker.
That messes up our script :)

No idea how that can happen but in plain Node and in a Cloudflare Worker it's working correctly.

Related: nodejs/node#3425
Related: nodejs/node#11593

I guess there isn't even a way around that when using Node's VM functionality. Cloudworker cannot reliably rebuild a Cloudflare Worker environment like that. As far as I know, Cloudflare Workers use v8 isolates instead.

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