Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102353904
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
Wed, Feb 19, 19:51
Size
566 B
Mime Type
text/x-c++
Expires
Fri, Feb 21, 19:51 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24330096
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