Skip to content

Implement File.mtime in a browser environment #523

Open
@ggrossetie

Description

@ggrossetie

I've opened an issue upstream: opal/opal#1870
But I'm still not sure that we can return a reliable value and/or that this method make sense in a browser environment.

@mojavelinux Would you consider adding a special case in Asciidoctor core in https://github.com/asciidoctor/asciidoctor/blob/8c11ef85071c778f1d5428dc1bd841c47eea1b42/lib/asciidoctor.rb#L1326

Basically what we need to do is check that we are running in a browser environment (Opal) and return the current date.

Ref: #522

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions