aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/parse.js4
-rw-r--r--test/compress/html_comments.js16
2 files changed, 1 insertions, 19 deletions
diff --git a/lib/parse.js b/lib/parse.js
index 25fe9319..4d37b85e 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -1501,9 +1501,7 @@ function parse($TEXT, options) {
};
function is_assignable(expr) {
- if (!options.strict) return true;
- if (expr instanceof AST_This) return false;
- return (expr instanceof AST_PropAccess || expr instanceof AST_Symbol);
+ return expr instanceof AST_PropAccess || expr instanceof AST_SymbolRef;
};
var maybe_assign = function(no_in) {
diff --git a/test/compress/html_comments.js b/test/compress/html_comments.js
index 8495b433..fe6ff8ac 100644
--- a/test/compress/html_comments.js
+++ b/test/compress/html_comments.js
@@ -47,22 +47,6 @@ html_comment_in_greater_than_or_equal: {
expect_exact: "function f(a,b){return a-- >=b}";
}
-html_comment_in_right_shift_assign: {
- input: {
- // Note: illegal javascript
- function f(a, b) { return a-- >>= b; }
- }
- expect_exact: "function f(a,b){return a-- >>=b}";
-}
-
-html_comment_in_zero_fill_right_shift_assign: {
- input: {
- // Note: illegal javascript
- function f(a, b) { return a-- >>>= b; }
- }
- expect_exact: "function f(a,b){return a-- >>>=b}";
-}
-
html_comment_in_string_literal: {
input: {
function f() { return "<!--HTML-->comment in<!--string literal-->"; }