Fix initialization of 'this' argument in 'call_n' opcode handler.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
committed by
Evgeny Gavrin
parent
c84d31ce9e
commit
aa415c670e
@@ -60,3 +60,13 @@ try {
|
||||
catch (e) {
|
||||
assert (e instanceof ReferenceError);
|
||||
}
|
||||
|
||||
function f2 ()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
with ({})
|
||||
{
|
||||
assert (f2 () === this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user