Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101800595
SystemRuntimeModule.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Feb 13, 20:22
Size
698 B
Mime Type
text/x-c++
Expires
Sat, Feb 15, 20:22 (2 d)
Engine
blob
Format
Raw Data
Handle
24230964
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
SystemRuntimeModule.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Florent Cailhol @ooflorent
*/
"use strict";
const RuntimeGlobals = require("../RuntimeGlobals");
const RuntimeModule = require("../RuntimeModule");
const Template = require("../Template");
class SystemRuntimeModule extends RuntimeModule {
constructor() {
super("system");
}
/**
* @returns {string} runtime code
*/
generate() {
return Template.asString([
`${RuntimeGlobals.system} = {`,
Template.indent([
"import: function () {",
Template.indent(
"throw new Error('System.import cannot be used indirectly');"
),
"}"
]),
"};"
]);
}
}
module.exports = SystemRuntimeModule;
Event Timeline
Log In to Comment