aboutsummaryrefslogtreecommitdiff
path: root/main_background.js
diff options
context:
space:
mode:
authorNateN1222 <nathannichols454@gmail.com>2017-10-28 09:12:54 -0500
committerNateN1222 <nathannichols454@gmail.com>2017-10-28 09:12:54 -0500
commitf9bd00d49a9de977ecbf75b5fda6d0372483b2e2 (patch)
tree5a0290f5240d5d006e5c25d1527a983ef12c1440 /main_background.js
parentb0d5c049d41d9b92937306021ff7ea4bdd3f9f8b (diff)
Minor changes for release on mozilla addon store
Diffstat (limited to 'main_background.js')
-rw-r--r--main_background.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/main_background.js b/main_background.js
index d26c5f8..c61c4f2 100644
--- a/main_background.js
+++ b/main_background.js
@@ -1569,7 +1569,7 @@ var fname_data = {
"NodeList": true,
"StopIteration": true
};
-//************************Comes from HTML file index.html's script test.js****************************
+//************************this part can be tested in the HTML file index.html's script test.js****************************
function full_evaluate(script){
var res = true;
@@ -1679,11 +1679,13 @@ function full_evaluate(script){
}
}
// Is there bracket suffix notation?
- if(is_bsn(toke.end)){
- dbg_print("%c NONTRIVIAL: Bracket suffix notation on variable '"+toke.value+"'","color:red");
- if(DEBUG == false){
- return [false,"NONTRIVIAL: Bracket suffix notation on variable '"+toke.value+"'"];
- }
+ if(operators[toke.value] === undefined){
+ if(is_bsn(toke.end)){
+ dbg_print("%c NONTRIVIAL: Bracket suffix notation on variable '"+toke.value+"'","color:red");
+ if(DEBUG == false){
+ return [false,"NONTRIVIAL: Bracket suffix notation on variable '"+toke.value+"'"];
+ }
+ }
}
}else{
dbg_print("trivial token:"+toke.value);
@@ -1695,8 +1697,6 @@ function full_evaluate(script){
}catch(e){
dbg_print("Denied script because it cannot be parsed.");
return [false,"NONTRIVIAL: Cannot be parsed."];
- console.warn("Continuing evaluation");
- error_count++;
}
}