mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[INFER] Add object test when statically walking the prototype chain for CALLPROP, bug 645985.
This commit is contained in:
parent
1f1a4d216c
commit
d7434b87f6
5
js/src/jit-test/tests/jaeger/bug645985.js
Normal file
5
js/src/jit-test/tests/jaeger/bug645985.js
Normal file
@ -0,0 +1,5 @@
|
||||
function f(o) {
|
||||
o += "";
|
||||
o.hasOwnProperty("x");
|
||||
}
|
||||
f({});
|
@ -4476,7 +4476,7 @@ mjit::Compiler::testSingletonPropertyTypes(FrameEntry *top, jsid id, bool *testO
|
||||
|
||||
case JSVAL_TYPE_OBJECT:
|
||||
case JSVAL_TYPE_UNKNOWN:
|
||||
if (types->objectCount == 1) {
|
||||
if (types->objectCount == 1 && !top->isNotType(JSVAL_TYPE_OBJECT)) {
|
||||
JS_ASSERT_IF(top->isTypeKnown(), top->isType(JSVAL_TYPE_OBJECT));
|
||||
types::TypeObject *object = (types::TypeObject *) types->objectSet;
|
||||
if (object->proto) {
|
||||
|
Loading…
Reference in New Issue
Block a user