浏览代码

domainLockTemplate false error

sanex3339 8 年之前
父节点
当前提交
7c3cc72f1e

文件差异内容过多而无法显示
+ 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; }
                 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 (
             if (

部分文件因为文件数量过多而无法显示