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:
Ruben Ayrapetyan
2015-07-11 01:20:06 +03:00
committed by Evgeny Gavrin
parent c84d31ce9e
commit aa415c670e
4 changed files with 77 additions and 5 deletions
+10
View File
@@ -60,3 +60,13 @@ try {
catch (e) {
assert (e instanceof ReferenceError);
}
function f2 ()
{
return this;
}
with ({})
{
assert (f2 () === this);
}