Fix cleanup in VM_OC_INITIALIZER_PUSH_PROP on abrupt completion (#4564)

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2021-02-04 16:05:56 +01:00
committed by GitHub
parent 9ca046b670
commit feb2855f0c
2 changed files with 13 additions and 2 deletions
+11
View File
@@ -237,3 +237,14 @@ try {
} catch (e) {
assert (e instanceof SyntaxError);
}
var abruptObj = Object.defineProperty({}, 'a', {
get() { throw 5.2; }
});
try {
const { a } = abruptObj;
assert (false);
} catch (e) {
assert (e === 5.2);
}