"ReferenceError: base is not defined" when no 'use strict' pragma. #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm integrating Prosemirror into an Electron application, and I've discovered that pressing a modifier key generates this error:
Uncaught ReferenceError: base is not definedat this location:github.com/marijnh/w3c-keyname@a8d1819f9c/index.js (L105)This baffled me quite a bit, since I turned on DevTools and
baseis clearly in scope when the exception is raised. However, I discovered that adding the'use strict'pragma to the first line of index.js seems to fix the issue.I'm using Babel with Webpack + Vue.js, and my ProseMirror code is this:
Basically following the ProseMirror "Getting Started" guide.
Hi, could you paste your bundled code (or a simplified version of it) somewhere and link it? Even with the 'use strict' thing, I still can't understand how this is happening.
Could this have actually been related to the code using
constand Electron running an old V8 that didn't support const/let in non-strict scopes yet? See92444b454b@marijnh
That seems to have been it -- I made that change locally and everything works as expected now.