mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
Issue #2519 - Use parser error reporter to report missing module exports
This commit is contained in:
parent
7381521cf7
commit
2128ac642e
1 changed files with 1 additions and 2 deletions
|
|
@ -2286,8 +2286,7 @@ Parser<FullParseHandler>::moduleBody(ModuleSharedContext* modulesc)
|
|||
if (!str.encodeLatin1(context, name))
|
||||
return null();
|
||||
|
||||
JS_ReportErrorNumberLatin1(context->asJSContext(), GetErrorMessage, nullptr,
|
||||
JSMSG_MISSING_EXPORT, str.ptr());
|
||||
error(JSMSG_MISSING_EXPORT, str.ptr());
|
||||
return null();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue