Methods shouldn't have prototype property (#3964)

JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
This commit is contained in:
Csaba Osztrogonác authored and GitHub committed 2020-08-05 14:01:58 +02:00
1 parent b82bd76175
commit c76736eadf
8 files changed
+22 -15

No files matched your search

@@ -18,4 +18,8 @@ class MyNonArray extends Array {
static [Symbol.species] () {}
}
(() => MyNonArray)().prototype.slice.call(new MyNonArray((0) === 1))
try {
(() => MyNonArray)().prototype.slice.call(new MyNonArray((0) === 1))
} catch (e) {
assert (e instanceof TypeError);
}