Closed Bug 1620796 Opened 5 years ago Closed 5 years ago

js-analyze.js produces nestingRange with -1 column index

Categories

(Webtools :: Searchfox, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kats, Assigned: kats)

References

Details

I tried running a new mozilla-archived run with all the new ESRs. It crashed when trying to parse the nestingRange in this analysis line:

{"loc":"5:8-11","source":1,"syntax":"use,prop","pretty":"property url","sym":"#url","nestingRange":"5:14-7:-1"}

because the final column value is -1 which is not a u32 and so panics here.

The file that produced this analysis line is addon-sdk/source/test/fixtures.js in the esr31 branch. The source file looks like this:

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

exports.url = path =>
  module.uri.substr(0, module.uri.lastIndexOf("/") + 1) + "fixtures/" + path

Also as of this writing the AWS instance i-0d8836d412006b1af is stopped and holds the state necessary to reproduce the rust panic, see the last command in ~/index-log.

Assignee: nobody → kats
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.