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
Tue, Dec 24, 03:32 (20 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
557019
Default Alt Text
super-context.js (531 B)

Event Timeline