[Webkit-unassigned] [Bug 157149] New: Assertion failure for destructuring assignment with new.target and unary operator

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 28 13:25:48 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=157149

            Bug ID: 157149
           Summary: Assertion failure for destructuring assignment with
                    new.target and unary operator
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: andre.bargull at gmail.com

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<JSC::Lexer<unsigned char> >::parseAssignmentExpression<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=..., classifier=...)
    at ../../Source/JavaScriptCore/parser/Parser.cpp:3051
#2  0x00007ffff6a96cf2 in JSC::Parser<JSC::Lexer<unsigned char> >::parseAssignmentExpression<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3045
#3  0x00007ffff6ab944c in JSC::Parser<JSC::Lexer<unsigned char> >::parseAssignmentExpression<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=..., classifier=...)
    at ../../Source/JavaScriptCore/parser/Parser.cpp:3119
#4  0x00007ffff6a96cf2 in JSC::Parser<JSC::Lexer<unsigned char> >::parseAssignmentExpression<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3045
#5  0x00007ffff6aa7f32 in JSC::Parser<JSC::Lexer<unsigned char> >::parseExpression<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3007
#6  0x00007ffff6aefb6e in JSC::Parser<JSC::Lexer<unsigned char> >::parsePrimaryExpression<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3749
#7  0x00007ffff6ad967b in JSC::Parser<JSC::Lexer<unsigned char> >::parseMemberExpression<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3948
#8  0x00007ffff6afc0c3 in JSC::Parser<JSC::Lexer<unsigned char> >::parseUnaryExpression<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:4109
#9  0x00007ffff6af20c8 in JSC::Parser<JSC::Lexer<unsigned char> >::parseBinaryExpression<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3265
#10 0x00007ffff6adfc1a in JSC::Parser<JSC::Lexer<unsigned char> >::parseConditionalExpression<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3224
#11 0x00007ffff6ab8e60 in JSC::Parser<JSC::Lexer<unsigned char> >::parseAssignmentExpression<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=..., classifier=...)
    at ../../Source/JavaScriptCore/parser/Parser.cpp:3075
#12 0x00007ffff6a96cf2 in JSC::Parser<JSC::Lexer<unsigned char> >::parseAssignmentExpression<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3045
#13 0x00007ffff6aa7f32 in JSC::Parser<JSC::Lexer<unsigned char> >::parseExpression<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:3007
#14 0x00007ffff6ab2079 in JSC::Parser<JSC::Lexer<unsigned char> >::parseExpressionStatement<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=...) at ../../Source/JavaScriptCore/parser/Parser.cpp:2533
#15 0x00007ffff6a94f66 in JSC::Parser<JSC::Lexer<unsigned char> >::parseStatement<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=..., directive=@0x7fffffff9308: 0x0, 
    directiveLiteralLength=0x7fffffff92f8) at ../../Source/JavaScriptCore/parser/Parser.cpp:1711
#16 0x00007ffff6a81e24 in JSC::Parser<JSC::Lexer<unsigned char> >::parseStatementListItem<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=..., directive=@0x7fffffff9308: 0x0, 
    directiveLiteralLength=0x7fffffff92f8) at ../../Source/JavaScriptCore/parser/Parser.cpp:578
#17 0x00007ffff6a823a4 in JSC::Parser<JSC::Lexer<unsigned char> >::parseSourceElements<JSC::SyntaxChecker> (this=0x7fffffffa2a0, context=..., mode=JSC::CheckForStrictMode)
    at ../../Source/JavaScriptCore/parser/Parser.cpp:404
#18 0x00007ffff6ad6aac in JSC::Parser<JSC::Lexer<unsigned char> >::parseFunctionBody<JSC::ASTBuilder> (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<JSC::Lexer<unsigned char> >::<lambda()>::operator()(void) const (__closure=0x7fffffff9610) at ../../Source/JavaScriptCore/parser/Parser.cpp:2110
#20 0x00007ffff6aa3be2 in JSC::Parser<JSC::Lexer<unsigned char> >::parseFunctionInfo<JSC::ASTBuilder> (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<JSC::Lexer<unsigned char> >::FunctionDefinitionType::Declaration) at ../../Source/JavaScriptCore/parser/Parser.cpp:2127
#21 0x00007ffff6a92665 in JSC::Parser<JSC::Lexer<unsigned char> >::parseFunctionDeclaration<JSC::ASTBuilder> (this=0x7fffffffa2a0, context=..., 
    exportType=JSC::Parser<JSC::Lexer<unsigned char> >::ExportType::NotExported) at ../../Source/JavaScriptCore/parser/Parser.cpp:2222
#22 0x00007ffff6a820e3 in JSC::Parser<JSC::Lexer<unsigned char> >::parseStatementListItem<JSC::ASTBuilder> (this=0x7fffffffa2a0, context=..., directive=@0x7fffffff9938: 0x0, 
    directiveLiteralLength=0x7fffffff9930) at ../../Source/JavaScriptCore/parser/Parser.cpp:564
#23 0x00007ffff6a75af3 in JSC::Parser<JSC::Lexer<unsigned char> >::parseSourceElements<JSC::ASTBuilder> (this=0x7fffffffa2a0, context=..., mode=JSC::CheckForStrictMode)
    at ../../Source/JavaScriptCore/parser/Parser.cpp:404
#24 0x00007ffff6a6730d in JSC::Parser<JSC::Lexer<unsigned char> >::parseInner (this=0x7fffffffa2a0, calleeName=..., parseMode=JSC::SourceParseMode::ProgramMode)
    at ../../Source/JavaScriptCore/parser/Parser.cpp:285
#25 0x00007ffff601b3f4 in JSC::Parser<JSC::Lexer<unsigned char> >::parse<JSC::ProgramNode> (this=0x7fffffffa2a0, error=..., calleeName=..., parseMode=JSC::SourceParseMode::ProgramMode)
    at ../../Source/JavaScriptCore/parser/Parser.h:1626
#26 0x00007ffff601a2e1 in JSC::parse<JSC::ProgramNode> (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=<incomplete type>, derivedContextType=JSC::DerivedContextType::None, evalContextType=JSC::EvalContextType::None) at ../../Source/JavaScriptCore/parser/Parser.h:1712
#27 0x00007ffff6b406e5 in JSC::CodeCache::getGlobalCodeBlock<JSC::UnlinkedProgramCodeBlock, JSC::ProgramExecutable> (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
---

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160428/c218f4b8/attachment.html>


More information about the webkit-unassigned mailing list