<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Assertion failure for destructuring assignment with new.target and unary operator"
   href="https://bugs.webkit.org/show_bug.cgi?id=157149">157149</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure for destructuring assignment with new.target and unary operator
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Local Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>JavaScriptCore
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>andre.bargull&#64;gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>SVN: rev200124
Build with: perl Tools/Scripts/build-jsc --gtk --debug


The following test case triggers this assertion error:
---
ASSERTION FAILED: !hasError()
---


Test case:
---
function f(){ ({v = (typeof new.target)} = {}) }
---


Stack trace:
---
#0  0x00007ffff6e289ac in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:322
#1  0x00007ffff6ab8bb3 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseAssignmentExpression&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=..., classifier=...)
    at ../../Source/JavaScriptCore/parser/Parser.cpp:3051
#2  0x00007ffff6a96cf2 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseAssignmentExpression&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3045
#3  0x00007ffff6ab944c in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseAssignmentExpression&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=..., classifier=...)
    at ../../Source/JavaScriptCore/parser/Parser.cpp:3119
#4  0x00007ffff6a96cf2 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseAssignmentExpression&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3045
#5  0x00007ffff6aa7f32 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseExpression&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3007
#6  0x00007ffff6aefb6e in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parsePrimaryExpression&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3749
#7  0x00007ffff6ad967b in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseMemberExpression&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3948
#8  0x00007ffff6afc0c3 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseUnaryExpression&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:4109
#9  0x00007ffff6af20c8 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseBinaryExpression&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3265
#10 0x00007ffff6adfc1a in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseConditionalExpression&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3224
#11 0x00007ffff6ab8e60 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseAssignmentExpression&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=..., classifier=...)
    at ../../Source/JavaScriptCore/parser/Parser.cpp:3075
#12 0x00007ffff6a96cf2 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseAssignmentExpression&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3045
#13 0x00007ffff6aa7f32 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseExpression&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3007
#14 0x00007ffff6ab2079 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseExpressionStatement&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:2533
#15 0x00007ffff6a94f66 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseStatement&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=..., directive=&#64;0x7fffffff9308: 0x0, 
    directiveLiteralLength=0x7fffffff92f8) at ../../Source/JavaScriptCore/parser/Parser.cpp:1711
#16 0x00007ffff6a81e24 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseStatementListItem&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=..., directive=&#64;0x7fffffff9308: 0x0, 
    directiveLiteralLength=0x7fffffff92f8) at ../../Source/JavaScriptCore/parser/Parser.cpp:578
#17 0x00007ffff6a823a4 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseSourceElements&lt;JSC::SyntaxChecker&gt; (this=0x7fffffffa2a0, context=..., mode=JSC::CheckForStrictMode)
    at ../../Source/JavaScriptCore/parser/Parser.cpp:404
#18 0x00007ffff6ad6aac in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseFunctionBody&lt;JSC::ASTBuilder&gt; (this=0x7fffffffa2a0, context=..., syntaxChecker=..., startLocation=..., startColumn=10, 
    functionKeywordStart=0, functionNameStart=9, parametersStart=10, constructorKind=JSC::ConstructorKind::None, superBinding=JSC::SuperBinding::NotNeeded, bodyType=JSC::StandardFunctionBodyBlock, 
    parameterCount=0, parseMode=JSC::SourceParseMode::NormalFunctionMode) at ../../Source/JavaScriptCore/parser/Parser.cpp:1786
#19 0x00007ffff6aa2cc5 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::&lt;lambda()&gt;::operator()(void) const (__closure=0x7fffffff9610) at ../../Source/JavaScriptCore/parser/Parser.cpp:2110
#20 0x00007ffff6aa3be2 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseFunctionInfo&lt;JSC::ASTBuilder&gt; (this=0x7fffffffa2a0, context=..., requirements=JSC::FunctionNeedsName, 
    mode=JSC::SourceParseMode::NormalFunctionMode, nameIsInContainingScope=true, constructorKind=JSC::ConstructorKind::None, expectedSuperBinding=JSC::SuperBinding::NotNeeded, functionKeywordStart=0, 
    functionInfo=..., functionDefinitionType=JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::FunctionDefinitionType::Declaration) at ../../Source/JavaScriptCore/parser/Parser.cpp:2127
#21 0x00007ffff6a92665 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseFunctionDeclaration&lt;JSC::ASTBuilder&gt; (this=0x7fffffffa2a0, context=..., 
    exportType=JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::ExportType::NotExported) at ../../Source/JavaScriptCore/parser/Parser.cpp:2222
#22 0x00007ffff6a820e3 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseStatementListItem&lt;JSC::ASTBuilder&gt; (this=0x7fffffffa2a0, context=..., directive=&#64;0x7fffffff9938: 0x0, 
    directiveLiteralLength=0x7fffffff9930) at ../../Source/JavaScriptCore/parser/Parser.cpp:564
#23 0x00007ffff6a75af3 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseSourceElements&lt;JSC::ASTBuilder&gt; (this=0x7fffffffa2a0, context=..., mode=JSC::CheckForStrictMode)
    at ../../Source/JavaScriptCore/parser/Parser.cpp:404
#24 0x00007ffff6a6730d in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseInner (this=0x7fffffffa2a0, calleeName=..., parseMode=JSC::SourceParseMode::ProgramMode)
    at ../../Source/JavaScriptCore/parser/Parser.cpp:285
#25 0x00007ffff601b3f4 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parse&lt;JSC::ProgramNode&gt; (this=0x7fffffffa2a0, error=..., calleeName=..., parseMode=JSC::SourceParseMode::ProgramMode)
    at ../../Source/JavaScriptCore/parser/Parser.h:1626
#26 0x00007ffff601a2e1 in JSC::parse&lt;JSC::ProgramNode&gt; (vm=0x7fffb09f1000, source=..., name=..., builtinMode=JSC::JSParserBuiltinMode::NotBuiltin, strictMode=JSC::JSParserStrictMode::NotStrict, 
    parseMode=JSC::SourceParseMode::ProgramMode, superBinding=JSC::SuperBinding::NotNeeded, error=..., positionBeforeLastNewline=0x0, defaultConstructorKind=JSC::ConstructorKind::None, 
    thisTDZMode=&lt;incomplete type&gt;, derivedContextType=JSC::DerivedContextType::None, evalContextType=JSC::EvalContextType::None) at ../../Source/JavaScriptCore/parser/Parser.h:1712
#27 0x00007ffff6b406e5 in JSC::CodeCache::getGlobalCodeBlock&lt;JSC::UnlinkedProgramCodeBlock, JSC::ProgramExecutable&gt; (this=0x7ffff0def000, vm=..., executable=0x7fffaedfbf70, source=..., 
    builtinMode=JSC::JSParserBuiltinMode::NotBuiltin, strictMode=JSC::JSParserStrictMode::NotStrict, thisTDZMode=JSC::ThisTDZMode::CheckIfNeeded, debuggerMode=JSC::DebuggerOff, 
    profilerMode=JSC::ProfilerOff, error=..., evalContextType=JSC::EvalContextType::None, variablesUnderTDZ=0x7fffffffc8f0) at ../../Source/JavaScriptCore/runtime/CodeCache.cpp:106
#28 0x00007ffff6b3dccc in JSC::CodeCache::getProgramCodeBlock (this=0x7ffff0def000, vm=..., executable=0x7fffaedfbf70, source=..., builtinMode=JSC::JSParserBuiltinMode::NotBuiltin, 
    strictMode=JSC::JSParserStrictMode::NotStrict, debuggerMode=JSC::DebuggerOff, profilerMode=JSC::ProfilerOff, error=...) at ../../Source/JavaScriptCore/runtime/CodeCache.cpp:138
#29 0x00007ffff6c046c9 in JSC::JSGlobalObject::createProgramCodeBlock (this=0x7fffaede7900, callFrame=0x7fffaede7940, executable=0x7fffaedfbf70, exception=0x7fffffffcaa0)
    at ../../Source/JavaScriptCore/runtime/JSGlobalObject.cpp:1086
#30 0x00007ffff6ba736d in JSC::ProgramExecutable::initializeGlobalProperties (this=0x7fffaedfbf70, vm=..., callFrame=0x7fffaede7940, scope=0x7fffaeddbfc0)
    at ../../Source/JavaScriptCore/runtime/Executable.cpp:586
#31 0x00007ffff6997c78 in JSC::Interpreter::execute (this=0x7ffff0def058, program=0x7fffaedfbf70, callFrame=0x7fffaede7940, thisObj=0x7fffaedba360)
    at ../../Source/JavaScriptCore/interpreter/Interpreter.cpp:940
#32 0x00007ffff6b849ad in JSC::evaluate (exec=0x7fffaede7940, source=..., thisValue=..., returnedException=...) at ../../Source/JavaScriptCore/runtime/Completion.cpp:106
#33 0x000000000043a120 in runInteractive (globalObject=0x7fffaede7900) at ../../Source/JavaScriptCore/jsc.cpp:2083
#34 0x000000000043abcb in runJSC (vm=0x7fffb09f1000, options=...) at ../../Source/JavaScriptCore/jsc.cpp:2244
#35 0x000000000043b0a1 in jscmain (argc=1, argv=0x7fffffffdbb8) at ../../Source/JavaScriptCore/jsc.cpp:2293
#36 0x000000000043967f in main (argc=1, argv=0x7fffffffdbb8) at ../../Source/JavaScriptCore/jsc.cpp:1947
---</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>