Fix class name check for WeakMap and WeakSet prototype (#3358)
Fixes #3357. JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
This commit is contained in:
committed by
Robert Fancsik
parent
62356796fc
commit
1c6f334f62
@@ -135,6 +135,8 @@ try {
|
||||
assert (e instanceof TypeError);
|
||||
}
|
||||
|
||||
assert (WeakMap.prototype.toString() === "[object WeakMap]");
|
||||
|
||||
WeakMap.prototype.set = function () { throw "abrupt set" };
|
||||
|
||||
try {
|
||||
|
||||
@@ -119,6 +119,8 @@ try {
|
||||
assert (e instanceof TypeError);
|
||||
}
|
||||
|
||||
assert (WeakSet.prototype.toString() === "[object WeakSet]");
|
||||
|
||||
WeakSet.prototype.add = function () { throw "abrupt add" };
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user