From 0359096125a88b85adbc8374fad9ba2c1d700bb3 Mon Sep 17 00:00:00 2001 From: kale-io Date: Tue, 14 Nov 2017 14:21:54 -0800 Subject: [PATCH 1/2] Convert `var` to `let` --- security-attack/send.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security-attack/send.js b/security-attack/send.js index 766e67e..8cc5902 100644 --- a/security-attack/send.js +++ b/security-attack/send.js @@ -1,5 +1,5 @@ function mkSend(rawSend) { - var whiteList = { "http://www.microsoft.com/mail": true, + let whiteList = { "http://www.microsoft.com/mail": true, "http://www.microsoft.com/owa" : true }; function newSend (target, msg) { if (whiteList[target]) { From dd85acfd1f18a6a1cdd9b700c77d18781593b1e1 Mon Sep 17 00:00:00 2001 From: kale-io Date: Tue, 14 Nov 2017 15:38:07 -0800 Subject: [PATCH 2/2] Convert `var` to `let` --- verification/avl/avl.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/verification/avl/avl.js b/verification/avl/avl.js index 59f3362..e945856 100644 --- a/verification/avl/avl.js +++ b/verification/avl/avl.js @@ -5,7 +5,7 @@ function make_node(v) { - var node = { + let node = { value : v, height : 1, left : null, @@ -150,15 +150,3 @@ function remove(v, t) // Test -// function Test() { -// var avl = null; console.log(avl); -// avl = insert(1,avl); console.log(avl); -// avl = insert(2,avl); console.log(avl); -// avl = insert(3,avl); console.log(avl); -// console.log(find(1,avl)); -// console.log(find(2,avl)); -// console.log(find(3,avl)); -// console.log(find(4,avl)); -// avl = remove(2,avl); console.log(avl); -// } -// Test();