HasInstance should accept the prototype of all functions. Fixes #1519. (#1520)

The regression-test-issue-736.js is also changed, since it expects
throwing an error, which does not happen anymore because the "x"
variable is undefined.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2017-01-16 13:43:54 +01:00
committed by Tilmann Scheller
parent 6e5b759319
commit 4b5cf8ad26
3 changed files with 47 additions and 13 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ try {
}
try {
eval("var x; x instanceof assert;");
eval("var x = {}; x instanceof assert;");
assert(false);
} catch(e) {
assert(e instanceof TypeError);