Skip to content

Commit

Permalink
endo-module-override: isObject pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Aug 7, 2020
1 parent 4ceb1da commit d3ce297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/endo/src/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const parseJson = (source, _specifier, location, _packageLocation) => {
export const makeExtensionParser = (extensions, types) => {
return (source, specifier, location, packageLocation) => {
let extension;
if (typeof types === "object" && hasOwnProperty.call(types, specifier)) {
if (Object(types) === types && hasOwnProperty.call(types, specifier)) {
extension = types[specifier];
} else {
extension = parseExtension(location);
Expand Down

0 comments on commit d3ce297

Please sign in to comment.