Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
defaultJSExtensions support for traced conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jan 24, 2016
1 parent e2436d0 commit 5bf7c6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/trace.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ Trace.prototype.getLoadRecord = function(canonical, excludeURLs, parentStack) {
var pkgName = canonical.substr(0, pkgEnvIndex);
var subPath = canonical.substr(pkgEnvIndex + 3);

var normalizedPkgName = loader.decanonicalize(pkgName);
// NB can remove defaultJSExtensions support here
var normalizedPkgName = loader.decanonicalize(pkgName + '/');
normalizedPkgName = normalizedPkgName.substr(0, normalizedPkgName.length - 1);

var pkg = loader.packages[normalizedPkgName];

Expand Down

0 comments on commit 5bf7c6e

Please sign in to comment.