Fix of memory leak in Function.prototype.bind function.

Related issue: #511

JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély [email protected]
This commit is contained in:
Zsolt Borbély committed 2015-08-06 13:05:33 +02:00
1 parent 2630048ecc
commit e61f41a0bc
2 files changed
+8

No files matched your search

+3
View File
@@ -115,6 +115,9 @@ assert (foo == 3);
assert (foo instanceof Number);
assert (foo.prototype === undefined);
var func = Number.prototype.toString.bind('foo');
assert (func instanceof Function);
try {
var this_obj = this.constructor;
var bound = this_obj.bind(null, "foo");