aboutsummaryrefslogtreecommitdiff
path: root/src/js/nebulas-account.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/nebulas-account.js')
-rw-r--r--src/js/nebulas-account.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/js/nebulas-account.js b/src/js/nebulas-account.js
index 45d8724..bded3e9 100644
--- a/src/js/nebulas-account.js
+++ b/src/js/nebulas-account.js
@@ -21709,7 +21709,7 @@ module.exports = function privateDecrypt(private_key, enc, reverse) {
21709 } else { 21709 } else {
21710 padding = 4; 21710 padding = 4;
21711 } 21711 }
21712 21712
21713 var key = parseKeys(private_key); 21713 var key = parseKeys(private_key);
21714 var k = key.modulus.byteLength(); 21714 var k = key.modulus.byteLength();
21715 if (enc.length > k || new bn(enc).cmp(key.modulus) >= 0) { 21715 if (enc.length > k || new bn(enc).cmp(key.modulus) >= 0) {
@@ -27194,13 +27194,13 @@ Script.prototype.runInContext = function (context) {
27194 if (!(context instanceof Context)) { 27194 if (!(context instanceof Context)) {
27195 throw new TypeError("needs a 'context' argument."); 27195 throw new TypeError("needs a 'context' argument.");
27196 } 27196 }
27197 27197
27198 var iframe = document.createElement('iframe'); 27198 var iframe = document.createElement('iframe');
27199 if (!iframe.style) iframe.style = {}; 27199 if (!iframe.style) iframe.style = {};
27200 iframe.style.display = 'none'; 27200 iframe.style.display = 'none';
27201 27201
27202 document.body.appendChild(iframe); 27202 document.body.appendChild(iframe);
27203 27203
27204 var win = iframe.contentWindow; 27204 var win = iframe.contentWindow;
27205 var wEval = win.eval, wExecScript = win.execScript; 27205 var wEval = win.eval, wExecScript = win.execScript;
27206 27206
@@ -27209,7 +27209,7 @@ Script.prototype.runInContext = function (context) {
27209 wExecScript.call(win, 'null'); 27209 wExecScript.call(win, 'null');
27210 wEval = win.eval; 27210 wEval = win.eval;
27211 } 27211 }
27212 27212
27213 forEach(Object_keys(context), function (key) { 27213 forEach(Object_keys(context), function (key) {
27214 win[key] = context[key]; 27214 win[key] = context[key];
27215 }); 27215 });
@@ -27218,11 +27218,11 @@ Script.prototype.runInContext = function (context) {
27218 win[key] = context[key]; 27218 win[key] = context[key];
27219 } 27219 }
27220 }); 27220 });
27221 27221
27222 var winKeys = Object_keys(win); 27222 var winKeys = Object_keys(win);
27223 27223
27224 var res = wEval.call(win, this.code); 27224 var res = wEval.call(win, this.code);
27225 27225
27226 forEach(Object_keys(win), function (key) { 27226 forEach(Object_keys(win), function (key) {
27227 // Avoid copying circular objects like `top` and `window` by only 27227 // Avoid copying circular objects like `top` and `window` by only
27228 // updating existing context properties or new properties in the `win` 27228 // updating existing context properties or new properties in the `win`
@@ -27237,9 +27237,9 @@ Script.prototype.runInContext = function (context) {
27237 defineProp(context, key, win[key]); 27237 defineProp(context, key, win[key]);
27238 } 27238 }
27239 }); 27239 });
27240 27240
27241 document.body.removeChild(iframe); 27241 document.body.removeChild(iframe);
27242 27242
27243 return res; 27243 return res;
27244}; 27244};
27245 27245