[Webkit-unassigned] [Bug 189902] New: offlineasm: fix macro scoping

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 23 18:23:34 PDT 2018


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

            Bug ID: 189902
           Summary: offlineasm: fix macro scoping
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: tzagallo at apple.com

In the code below, the reference to `f` in `g`, which should refer to the outer macro definition will instead refer to the f argument of the anonymous macro passed to `g`. That leads to this code failing to compile (f expected 0 args but got 1).

```
macro f(x)
    move x, t0
end

macro g(fn)
    fn(macro () f(42) end)
end

g(macro(f) f() end)
```

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


More information about the webkit-unassigned mailing list