Last change
on this file since 6fe77af was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
267 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | const { promisify } = require('util');
|
---|
| 4 | const sleep = promisify(setTimeout);
|
---|
| 5 |
|
---|
| 6 | // eslint-disable-next-line no-eval
|
---|
| 7 | function handler (code) { return eval(code); }
|
---|
| 8 |
|
---|
| 9 | async function load () {
|
---|
| 10 | await sleep(100);
|
---|
| 11 | return handler;
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | module.exports = load();
|
---|
Note:
See
TracBrowser
for help on using the repository browser.