Bug 1059908 - Introduce a CONSTRUCTOR flag and make getter/setter/method non-constructable. r=efaust

This commit is contained in:
Tom Schuster
2015-05-15 20:53:03 +02:00
parent 14c4df68a4
commit f17ed632b7
19 changed files with 95 additions and 92 deletions

View File

@@ -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;
}