Bug 188489

Summary: Unary - applied to a variable causes an exception in ConstexprFolder
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 176199    

Myles C. Maxfield
Reported 2018-08-11 22:03:19 PDT
visitCallExpression() in ConstexprFolder calls unifyNode() on the argument, which can be a variableRef, which asks the "variable" parameter what its unifyNode() is, but it hasn't been set because we are doing this before the NameResolver or Checker has run.
Attachments
Myles C. Maxfield
Comment 1 2018-08-11 22:06:53 PDT
Perhaps the solution is not to call unifyNode in ConstexprFolder because the only time we use ConstexprFolder is before the "variable" parameter has been set.
Myles C. Maxfield
Comment 2 2018-08-29 17:24:08 PDT
*** This bug has been marked as a duplicate of bug 188873 ***
Myles C. Maxfield
Comment 3 2018-08-29 17:24:13 PDT
This is done.
Myles C. Maxfield
Comment 4 2018-10-13 15:37:51 PDT
Note You need to log in before you can comment on or make changes to this bug.