kv-storage-polyfill icon indicating copy to clipboard operation
kv-storage-polyfill copied to clipboard

ReferenceError: self is not defined

Open frontsideair opened this issue 4 years ago • 0 comments

I tried to use this polyfill with Node.js, but trying to perform a .get causes an exception. Here's a repro:

const storage = require('kv-storage-polyfill').default
storage.get("a")

This happens on Node.js v12.5.0 on macOS.

frontsideair avatar Sep 11 '19 10:09 frontsideair