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:
Dániel Bátyai
2019-11-25 11:48:33 +01:00
committed by Robert Fancsik
parent 62356796fc
commit 1c6f334f62
3 changed files with 10 additions and 0 deletions
+2
View File
@@ -135,6 +135,8 @@ try {
assert (e instanceof TypeError);
}
assert (WeakMap.prototype.toString() === "[object WeakMap]");
WeakMap.prototype.set = function () { throw "abrupt set" };
try {
+2
View File
@@ -119,6 +119,8 @@ try {
assert (e instanceof TypeError);
}
assert (WeakSet.prototype.toString() === "[object WeakSet]");
WeakSet.prototype.add = function () { throw "abrupt add" };
try {