• It looks like the problem is still present.
    I tried the following code:

    
    var foo = `Hello`
    foo = `world`
    

    Got the following optimized code

    
    try{var foo=`Hello`foo=`world`;}catch(e){}
    

    With error in it

    
    Uncaught SyntaxError: Unexpected identifier
    

    The following examples do not cause errors

    
    // template literals with semicolons
    var foo = `Hello`;
    foo = `world`;
    -> try{var foo=`Hello`;foo=`world`;}catch(e){}
    
    // Simple strings without semicolons
    var foo = 'Hello'
    foo = 'world'
    -> try{var foo='Hello'
    foo='world';}catch(e){}
    
    • This topic was modified 7 years, 1 month ago by Alex Kozack.
    • This topic was modified 7 years, 1 month ago by Alex Kozack.
    • This topic was modified 7 years, 1 month ago by Alex Kozack.
    • This topic was modified 7 years, 1 month ago by Alex Kozack.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Crash plugin when using template literals without semicolons’ is closed to new replies.