mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-20 05:14:44 +00:00
26 lines
727 B
JavaScript
26 lines
727 B
JavaScript
"use strict";
|
|
|
|
const EventImpl = require("./Event-impl").implementation;
|
|
|
|
const StorageEventInit = require("../generated/StorageEventInit");
|
|
|
|
// https://html.spec.whatwg.org/multipage/webstorage.html#the-storageevent-interface
|
|
class StorageEventImpl extends EventImpl {
|
|
initStorageEvent(type, bubbles, cancelable, key, oldValue, newValue, url, storageArea) {
|
|
if (this._dispatchFlag) {
|
|
return;
|
|
}
|
|
|
|
this.initEvent(type, bubbles, cancelable);
|
|
this.key = key;
|
|
this.oldValue = oldValue;
|
|
this.newValue = newValue;
|
|
this.url = url;
|
|
this.storageArea = storageArea;
|
|
}
|
|
}
|
|
StorageEventImpl.defaultInit = StorageEventInit.convert(undefined);
|
|
|
|
module.exports = {
|
|
implementation: StorageEventImpl
|
|
};
|