[JAEGER] Don't generate SetGlobalName MIC if !writable. b=584647, r=dvander.

This commit is contained in:
Sean Stangl 2010-08-06 12:02:38 -07:00
parent 5804faca3c
commit 3d93fc270c
2 changed files with 3 additions and 0 deletions

View File

@ -142,6 +142,7 @@ ic::SetGlobalName(VMFrame &f, uint32 index)
JSScopeProperty *sprop = scope->lookup(id);
if (!sprop ||
!sprop->hasDefaultGetterOrIsMethod() ||
!sprop->writable() ||
!SPROP_HAS_VALID_SLOT(sprop, scope))
{
JS_UNLOCK_SCOPE(f.cx, scope);

View File

@ -0,0 +1,2 @@
(function(){for(j=0;j<3;++j)NaN=42})();
assertEq(NaN != NaN, true);