RioChndr / jaksel-language

Jaksel Script, Programming language very modern and Indonesian style
MIT License
926 stars 91 forks source link

const params = paramNames?.trim().split(/\s+/) ?? []; #52

Closed iqbalnur32 closed 2 years ago

iqbalnur32 commented 2 years ago

hallo bang kenapa di saya ketika saya jalankan untuk example1.jaksel muncul error

/usr/lib/node_modules/jaksel-language/lib/logics/parser/functionDeclarationBegin.js:11 const params = paramNames?.trim().split(/\s+/) ?? []; ^ SyntaxError: Unexpected token '.' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (/usr/lib/node_modules/jaksel-language/lib/logics/index.js:10:34) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

saya menggunkaan node version 12.12, apakah tidak support di version node tersebut di beberapa command seperti

jaksel example/example2.jaksel

ataupun menggunakan command

node jaksel-interpreter.js example/example2.jaksel

RioChndr commented 2 years ago

Coba versi terbaru, v16.10