main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
539 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | /*
|
---|
| 2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | "use strict";
|
---|
| 6 |
|
---|
| 7 | const RuntimeGlobals = require("../RuntimeGlobals");
|
---|
| 8 | const RuntimeModule = require("../RuntimeModule");
|
---|
| 9 |
|
---|
| 10 | /** @typedef {import("../Compilation")} Compilation */
|
---|
| 11 |
|
---|
| 12 | class SystemContextRuntimeModule extends RuntimeModule {
|
---|
| 13 | constructor() {
|
---|
| 14 | super("__system_context__");
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | /**
|
---|
| 18 | * @returns {string | null} runtime code
|
---|
| 19 | */
|
---|
| 20 | generate() {
|
---|
| 21 | return `${RuntimeGlobals.systemContext} = __system_context__;`;
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | module.exports = SystemContextRuntimeModule;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.