Methods shouldn't have prototype property (#3964)
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
This commit is contained in:
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);
|
||||
}
|
||||
Reference in new issue
Block a user