@@ -60,15 +60,15 @@ function getTimestamp() {
6060const processManifest = async ( manifestResource ) => {
6161 const manifestContent = await manifestResource . getString ( ) ;
6262 const manifestObject = JSON . parse ( manifestContent ) ;
63- const manifestInfo = { } ;
63+ const manifestInfo = Object . create ( null ) ;
6464
6565 // sap.ui5/dependencies is used for the "manifestHints/libs"
6666 if ( manifestObject [ "sap.ui5" ] ) {
6767 const manifestDependencies = manifestObject [ "sap.ui5" ] [ "dependencies" ] ;
6868 if ( manifestDependencies && manifestDependencies . libs ) {
69- const libs = { } ;
69+ const libs = Object . create ( null ) ;
7070 for ( const [ libKey , libValue ] of Object . entries ( manifestDependencies . libs ) ) {
71- libs [ libKey ] = { } ;
71+ libs [ libKey ] = Object . create ( null ) ;
7272 if ( libValue . lazy ) {
7373 libs [ libKey ] . lazy = true ;
7474 }
@@ -230,7 +230,7 @@ class DependencyInfo {
230230 * @returns {object } the object with sorted keys
231231 */
232232const sortObjectKeys = ( obj ) => {
233- const sortedObject = { } ;
233+ const sortedObject = Object . create ( null ) ;
234234 const keys = Object . keys ( obj ) ;
235235 keys . sort ( ) ;
236236 keys . forEach ( ( key ) => {
@@ -433,7 +433,7 @@ export default async function({options}) {
433433 let components ;
434434 artifactInfos . forEach ( ( artifactInfo ) => {
435435 artifactInfo . embeds . forEach ( ( embeddedArtifactInfo ) => {
436- const componentObject = { } ;
436+ const componentObject = Object . create ( null ) ;
437437 const bundledComponents = artifactInfo . bundledComponents ;
438438 const componentName = embeddedArtifactInfo . componentName ;
439439 if ( ! bundledComponents . has ( componentName ) ) {
@@ -446,7 +446,7 @@ export default async function({options}) {
446446 componentObject . manifestHints = manifestHints ;
447447 }
448448
449- components = components || { } ;
449+ components = components || Object . create ( null ) ;
450450 components [ componentName ] = componentObject ;
451451 } ) ;
452452 } ) ;
0 commit comments