mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
more node
This commit is contained in:
0
rootfs_overlay/lkmc/nodejs/cjs/README.adoc
Normal file
0
rootfs_overlay/lkmc/nodejs/cjs/README.adoc
Normal file
7
rootfs_overlay/lkmc/nodejs/cjs/main.js
Executable file
7
rootfs_overlay/lkmc/nodejs/cjs/main.js
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const assert = require('assert');
|
||||
|
||||
const notmain = require('./notmain.js')
|
||||
assert(notmain.x === 1)
|
||||
assert(notmain.y === 2)
|
||||
2
rootfs_overlay/lkmc/nodejs/cjs/notmain.js
Normal file
2
rootfs_overlay/lkmc/nodejs/cjs/notmain.js
Normal file
@@ -0,0 +1,2 @@
|
||||
exports.x = 1;
|
||||
exports.y = 2;
|
||||
Reference in New Issue
Block a user