cesanta / mjs

Embedded JavaScript engine for C/C++
https://mongoose-os.com
Other
1.84k stars 171 forks source link

Segmentation fault in mjs_exec.c:880 #245

Open ErodedElk opened 1 year ago

ErodedElk commented 1 year ago

compile:

git clone https://github.com/cesanta/mjs.git
cd mjs
make

run:

cd build
./mjs poc.js

poc:

let a = function() {
  let y = 1,;
  let boo = function() {
return y;
  };
  return boo();
};
a() === 17;