mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 779841 - Escape inline cache if invalidated by the lookup. r=dvander
This commit is contained in:
parent
3ffd33a2cb
commit
d611f5686d
@ -329,6 +329,10 @@ js::ion::GetPropertyCache(JSContext *cx, size_t cacheIndex, HandleObject obj, Mu
|
||||
|
||||
topScript->invalidatedIdempotentCache = true;
|
||||
|
||||
// Do not re-invalidate if the lookup already caused invalidation.
|
||||
if (!topScript->hasIonScript())
|
||||
return true;
|
||||
|
||||
return Invalidate(cx, topScript);
|
||||
}
|
||||
|
||||
|
7
js/src/jit-test/tests/ion/bug779841.js
Normal file
7
js/src/jit-test/tests/ion/bug779841.js
Normal file
@ -0,0 +1,7 @@
|
||||
// |jit-test| error: TypeError
|
||||
|
||||
function outer2() {
|
||||
"use strict";
|
||||
new (function () {}).arguments
|
||||
}
|
||||
outer2();
|
Loading…
Reference in New Issue
Block a user