Do not reply to this email. You can add comments to this bug at https://bugzilla.mozilla.org/show_bug.cgi?id=1676615
What Removed Added CC jorendorff@mozilla.com Closed 2020-11-17 19:32:23 Resolution --- INVALID Status UNCONFIRMED RESOLVED
Product/Component: Core :: JavaScript Engine
You are receiving this mail because:
- You are on the CC list for the bug.
- You reported the bug.
Configure your email settings at https://bugzilla.mozilla.org/userprefs.cgi?tab=email.
This has always been invalid use of the API.
JS_DefineProperty(cx, g2, "link", v, 0);
requires that cx, g2, and v be same-compartment. Here the valuev
isg1
, a global in a different compartment.The rule is enforced with assertions in debug builds—we strongly recommend using a debug build for development, as there are many assertions that check API usage, and the API is very error-prone without those checks.
Marking this as RESOLVED INVALID which just means it looks like there is not a bug to fix.