};
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) {
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-->"; }