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:
@@ -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;"));
|
||||
|
||||
Reference in New Issue
Block a user