Skip to content

isBrowserEnvironment is false in the browser #459

Open

Description

@shulandmimi

running in a strict mode in the browser will lead isBrowserEnvironment is false

"use strict";

var isBrowserEnvironment = (function() {
    // eslint-disable-next-line no-undef
    return (typeof window !== "undefined") && (this === window);
}).call();

isBrowserEnvironment
// false

Activity

  1. ochameau commented on Oct 19, 2022

    @ochameau
    Contributor

    Is this on an old branch? This variable doesn't exist.

  2. ippeiukai commented on Oct 19, 2022

    @ippeiukai

    It is fixed in the master branch indeed.
    #363

    Still present in the latest version.
    https://github.com/mozilla/source-map/blob/v0.7.4/lib/read-wasm.js#L4

  3. shulandmimi commented on Oct 20, 2022

    @shulandmimi
    Author

    Is this on an old branch? This variable doesn't exist.

    https://www.npmjs.com/package/source-map/v/0.7.4 still exist

    Is there a plan to release the next version?

  4. ochameau commented on Oct 20, 2022

    @ochameau
    Contributor

    Yes, we are planning to release a new stable version.

    No ETA yet. We are trying to revive the maintenance of this repo which has been stale for a while.

  5. shulandmimi commented on Oct 20, 2022

    @shulandmimi
    Author

    thanks

  6. eliasm307 commented on Aug 27, 2024

    @eliasm307

    Hello, is there any update regarding this? it has been 2 years since the last comment and the patched version has not been released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions