Page MenuHomeSealhub

super-context.js
No OneTemporary

super-context.js

"use strict";
const locreq = require("locreq")(__dirname);
const Context = locreq("lib/context.js");
function SuperContext(regular_context) {
if (regular_context === undefined) {
regular_context = new Context();
}
const ret = Object.create(regular_context);
Object.defineProperty(ret, "is_super", { value: true });
ret.original_context = regular_context;
while (ret.original_context.original_context) {
ret.original_context = ret.original_context.original_context;
}
return ret;
}
module.exports = SuperContext;

File Metadata

Mime Type
text/plain
Expires
Mon, May 19, 00:54 (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
635652
Default Alt Text
super-context.js (531 B)

Event Timeline