Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101776107
ChunkNameRuntimeModule.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, 14:23
Size
566 B
Mime Type
text/x-c++
Expires
Sat, Feb 15, 14:23 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
24228007
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
ChunkNameRuntimeModule.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
*/
"use strict";
const RuntimeGlobals = require("../RuntimeGlobals");
const RuntimeModule = require("../RuntimeModule");
class ChunkNameRuntimeModule extends RuntimeModule {
/**
* @param {string} chunkName the chunk's name
*/
constructor(chunkName) {
super("chunkName");
this.chunkName = chunkName;
}
/**
* @returns {string} runtime code
*/
generate() {
return `${RuntimeGlobals.chunkName} = ${JSON.stringify(this.chunkName)};`;
}
}
module.exports = ChunkNameRuntimeModule;
Event Timeline
Log In to Comment