mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[JAEGER] Don't generate SetGlobalName MIC if !writable. b=584647, r=dvander.
This commit is contained in:
parent
5804faca3c
commit
3d93fc270c
@ -142,6 +142,7 @@ ic::SetGlobalName(VMFrame &f, uint32 index)
|
|||||||
JSScopeProperty *sprop = scope->lookup(id);
|
JSScopeProperty *sprop = scope->lookup(id);
|
||||||
if (!sprop ||
|
if (!sprop ||
|
||||||
!sprop->hasDefaultGetterOrIsMethod() ||
|
!sprop->hasDefaultGetterOrIsMethod() ||
|
||||||
|
!sprop->writable() ||
|
||||||
!SPROP_HAS_VALID_SLOT(sprop, scope))
|
!SPROP_HAS_VALID_SLOT(sprop, scope))
|
||||||
{
|
{
|
||||||
JS_UNLOCK_SCOPE(f.cx, scope);
|
JS_UNLOCK_SCOPE(f.cx, scope);
|
||||||
|
2
js/src/trace-test/tests/jaeger/bug584647.js
Normal file
2
js/src/trace-test/tests/jaeger/bug584647.js
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
(function(){for(j=0;j<3;++j)NaN=42})();
|
||||||
|
assertEq(NaN != NaN, true);
|
Loading…
Reference in New Issue
Block a user