ccxvii / mujs

An embeddable Javascript interpreter in C.
http://mujs.com/
ISC License
794 stars 96 forks source link

valid function defined twice -> incorrect syntax error "duplicate formal parameter" #156

Open avih opened 2 years ago

avih commented 2 years ago

With this test file fndup.js:

"use strict";
function x(y) { }
function x(y) { }

As far as I can tell this is a valid file, but it gives the following error:

SyntaxError: fndup.js:3: duplicate formal parameter 'x'