-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathapplication.js
More file actions
19 lines (15 loc) · 640 Bytes
/
Copy pathapplication.js
File metadata and controls
19 lines (15 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'use strict';
// File contains a small piece of the source to demonstrate main module
// of a sample application to be executed in the sandboxed context by
// another pice of code from `framework.js`. Read README.md for tasks.
const fs = require('node:fs');
const net = require('node:net');
// Print from the global context of application module
console.log('From application global context');
console.dir({ fs, net }, { depth: 1 });
console.dir({ global }, { depth: 1 });
console.dir({ api }, { depth: 2 });
module.exports = () => {
// Print from the exported function context
console.log('From application exported function');
};