mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-03 04:57:31 +09:00
Split Parser::report into Parser::zeport (a temporary name) that uses
the current offset, and Parser::reportWithNode that derives it from a Node.
This commit is contained in:
parent
5676f63f41
commit
e9ffb69b02
4 changed files with 198 additions and 209 deletions
|
|
@ -3559,9 +3559,11 @@ BytecodeEmitter::maybeSetSourceMap()
|
|||
if (parser->options().sourceMapURL()) {
|
||||
// Warn about the replacement, but use the new one.
|
||||
if (parser->ss->hasSourceMapURL()) {
|
||||
if(!parser->report(ParseWarning, false, nullptr, JSMSG_ALREADY_HAS_PRAGMA,
|
||||
parser->ss->filename(), "//# sourceMappingURL"))
|
||||
if (!parser->reportNoOffset(ParseWarning, false, JSMSG_ALREADY_HAS_PRAGMA,
|
||||
parser->ss->filename(), "//# sourceMappingURL"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!parser->ss->setSourceMapURL(cx, parser->options().sourceMapURL()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue