Bug 1028331 - Use BailoutKind to report more detailed PJS bailout warnings. (r=lth)
This commit is contained in:
@@ -4905,7 +4905,7 @@ bool
|
||||
JSObject::reportReadOnly(ThreadSafeContext *cxArg, jsid id, unsigned report)
|
||||
{
|
||||
if (cxArg->isForkJoinContext())
|
||||
return cxArg->asForkJoinContext()->reportError(ParallelBailoutUnsupportedVM, report);
|
||||
return cxArg->asForkJoinContext()->reportError(report);
|
||||
|
||||
if (!cxArg->isJSContext())
|
||||
return true;
|
||||
@@ -4921,7 +4921,7 @@ bool
|
||||
JSObject::reportNotConfigurable(ThreadSafeContext *cxArg, jsid id, unsigned report)
|
||||
{
|
||||
if (cxArg->isForkJoinContext())
|
||||
return cxArg->asForkJoinContext()->reportError(ParallelBailoutUnsupportedVM, report);
|
||||
return cxArg->asForkJoinContext()->reportError(report);
|
||||
|
||||
if (!cxArg->isJSContext())
|
||||
return true;
|
||||
@@ -4937,7 +4937,7 @@ bool
|
||||
JSObject::reportNotExtensible(ThreadSafeContext *cxArg, unsigned report)
|
||||
{
|
||||
if (cxArg->isForkJoinContext())
|
||||
return cxArg->asForkJoinContext()->reportError(ParallelBailoutUnsupportedVM, report);
|
||||
return cxArg->asForkJoinContext()->reportError(report);
|
||||
|
||||
if (!cxArg->isJSContext())
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user