Bug 1059908 - Introduce a CONSTRUCTOR flag and make getter/setter/method non-constructable. r=efaust
This commit is contained in:
@@ -2603,7 +2603,7 @@ JSObject::isConstructor() const
|
||||
{
|
||||
if (is<JSFunction>()) {
|
||||
const JSFunction& fun = as<JSFunction>();
|
||||
return fun.isNativeConstructor() || fun.isInterpretedConstructor();
|
||||
return fun.isConstructor();
|
||||
}
|
||||
return constructHook() != nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user