Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101830386
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
Fri, Feb 14, 04:05
Size
698 B
Mime Type
text/x-c++
Expires
Sun, Feb 16, 04:05 (1 d, 23 h)
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