mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 19:51:35 +01:00
more node
This commit is contained in:
11
rootfs_overlay/lkmc/nodejs/esm/main.js
Executable file
11
rootfs_overlay/lkmc/nodejs/esm/main.js
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
import { strict as assert } from 'assert';
|
||||
|
||||
import anyname from './notmain.js'
|
||||
assert(anyname === 1)
|
||||
|
||||
|
||||
// Not possible, have to use import everywhere.
|
||||
//import notmain2 from './notmain2.js'
|
||||
//const notmain2 = require('notmain2');
|
||||
Reference in New Issue
Block a user