Fix string dereference in ecma_op_create_dynamic_function (#3873)

Fixes #3862

JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
This commit is contained in:
Szilagyi Adam
2020-06-08 10:23:26 +02:00
committed by GitHub
parent ba4e3a402f
commit 358101f27f
4 changed files with 34 additions and 3 deletions
+2 -2
View File
@@ -51,8 +51,8 @@ function DogClass () {
var obj1 = Reflect.construct (CatClass, args, DogClass);
assert (obj1.name === 'Cat');
// assert (!(ob1 instanceof CatClass)); This is true because new target is not supported yet
// assert (obj1 instanceof DogClass); This is false because new target is not supported yet
assert (!(obj1 instanceof CatClass));
assert (obj1 instanceof DogClass);
try {
Reflect.construct (func1, 5, 5);