Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Medium

New issue 697 by [email protected]: Object.create does not work when given a function as proto
http://code.google.com/p/v8/issues/detail?id=697

When calling Object.create with a function as argument the method returns a
TypeError.

What will reproduce the problem:
Object.create(function() {})

Expected result:
Nothing (i.e., no type error)

Actual result:
TypeError: Object prototype may only be an Object or null

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to