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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user