Fix lazy instantiation of external functions 'prototype' property (#3246)

This patch resolves #2302.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2019-10-25 15:56:37 +02:00
committed by GitHub
parent 100a012931
commit b7aa21ebc7
4 changed files with 129 additions and 55 deletions
+2 -8
View File
@@ -27,13 +27,7 @@ try {
eval(code);
assert(false);
} catch(e) {
assert(e instanceof TypeError);
}
try {
eval("var x = {}; x instanceof assert;");
assert(false);
} catch(e) {
assert(e instanceof TypeError);
assert(e instanceof ReferenceError);
}
assert (!eval("var x = {}; x instanceof assert;"));