Object constructor prototype should be set to Function.

JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
This commit is contained in:
Peter Gal
2015-08-05 11:30:45 +02:00
parent 5888401318
commit fe0ec9d7fa
3 changed files with 3 additions and 10 deletions
-9
View File
@@ -118,15 +118,6 @@ 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");
var foo = new bound();
assert (false);
} catch (e) {
assert (e instanceof TypeError);
}
try {
var math = Math.sin;
var bound = math.bind(null, 0);