Pārlūkot izejas kodu

domainLockTemplate false error

sanex3339 8 gadi atpakaļ
vecāks
revīzija
7c3cc72f1e

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/index.js


+ 8 - 2
src/templates/custom-nodes/domain-lock-nodes/domain-lock-node/DomainLockNodeTemplate.ts

@@ -10,8 +10,14 @@ export function DomainLockNodeTemplate (): string {
                 if (typeof global !== 'undefined') { return global; }
             };
             
-            var func = function () {
-                eval('while(true){}')();
+            var func = function () { 
+                return {
+                    key: 'item',
+                    value: 'attribute',
+                    getAttribute: function () {
+                        getGlobal()['eval']('while(true){}')();
+                    }()
+                };
             };
         
             if (

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels