File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -42,16 +42,18 @@ ${this.name}PropertiesConstructor.prototype.constructor = ${this.name}Properties
4242
4343  this . str  +=  ` 
4444const ${ this . name } ${ this . name }  
45+   defineProperty() { 
46+     return false; 
47+   }, 
48+   deleteProperty() { 
49+     return false; 
50+   }, 
4551  get(target, key) { 
4652    if (key in this) { 
4753      return this[key]; 
4854    } 
4955    return target[key]; 
5056  }, 
51-   set(target, key, value) { 
52-     this[key] = value; 
53-     return true; 
54-   } 
5557});\n\n` ; 
5658} ; 
5759
@@ -97,8 +99,7 @@ Interface.prototype.generateConstructor = function () {
9799    this . str  +=  `${ this . name } ${ this . idl . inheritance }  
98100${ this . name } ${ this . name } ; 
99101  }  else  if  ( utils . isGlobal ( this . idl ) )  { 
100-     this . str  +=  `${ this . name } ${ this . name }  
101- ${ this . name } ${ this . name } ; 
102+     this . str  +=  `Object.setPrototypeOf(${ this . name } ${ this . name }  ; 
102103  } 
103104} ; 
104105
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments