Skip to content
This repository has been archived by the owner on Apr 2, 2019. It is now read-only.

when "this" is undefined, this.opts breaks things #24

Open
mvayngrib opened this issue Mar 19, 2017 · 1 comment
Open

when "this" is undefined, this.opts breaks things #24

mvayngrib opened this issue Mar 19, 2017 · 1 comment

Comments

@mvayngrib
Copy link
Contributor

mvayngrib commented Mar 19, 2017

happens to me in the browser when i have a module with strict mode that uses map-stream

i don't see opts ever getting used, is it needed?

a simplified version of what happens (in chrome dev tools)

(function blah () { 'use strict'; console.log(this) }())
VM248:1 undefined
@dominictarr
Copy link
Owner

ah yeah that looks weird. I wrote this a very long time ago! happy to merge a PR to make this run in strict mode.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants