mozilla/source-map

`isBrowserEnvironment` is `false` in the browser

shulandmimi opened this issue · 6 comments

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

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

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

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?

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.

thanks

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