-
Notifications
You must be signed in to change notification settings - Fork 126
Open
Description
To reproduce:
<head>
<script type="module">
import('https://cdnjs.cloudflare.com/ajax/libs/jsmediatags/3.9.5/jsmediatags.min.js');
</script>
</head>
Error:
Uncaught TypeError: Cannot use 'in' operator to search for 'Object' in undefined
at $jscomp.polyfill (jsmediatags.min.js:2:113)
at jsmediatags.min.js:2:257
Reason is that this is undefined in ES6 modules:
$jscomp.global = $jscomp.getGlobal(this); // === undefined
I understand we use this here to support Node. Can getGlobal() return window if it is passed undefined?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels