Fix setup of argument variables in case parameter names are duplicated.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
committed by
Evgeny Gavrin
parent
134491453b
commit
0c7801b996
@@ -45,6 +45,13 @@ for(i = 11; i <= 20; i++)
|
||||
f1(i);
|
||||
}
|
||||
|
||||
function g (p, p) {
|
||||
assert (p === arguments[1]);
|
||||
assert (p === 'second');
|
||||
}
|
||||
|
||||
g ('first', 'second');
|
||||
|
||||
try {
|
||||
f1 ({});
|
||||
f1 (undefined_variable);
|
||||
|
||||
Reference in New Issue
Block a user