Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup on nits
  • Loading branch information
bmeck committed Feb 15, 2021
commit ac2a32b48f5bff549741944e74dd1203aefa3b9f
6 changes: 3 additions & 3 deletions lib/internal/policy/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ class Manifest {
*/
constructor(obj, manifestURL) {
const scopes = this.#scopeDependencies;
scopes.set(null, TERMINATE);
scopes.set(undefined, TERMINATE);
scopes.set(null, kTerminate);
scopes.set(undefined, kTerminate);
const integrities = this.#resourceIntegrities;
const dependencies = this.#resourceDependencies;
let reaction = REACTION_THROW;
Expand Down Expand Up @@ -423,7 +423,7 @@ class Manifest {
protocol = currentURL.protocol;
}
// Only a few schemes are hierarchical
if (SPECIAL_SCHEMES.has(currentURL.protocol)) {
if (kSpecialSchemes.has(currentURL.protocol)) {
// Make first '..' act like '.'
if (!StringPrototypeEndsWith(currentURL.pathname, '/')) {
currentURL.pathname += '/';
Expand Down