mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 887521 - Fix OnUnknownMethod to not modify vp if there's no __noSuchMethod__ method. r=jwalden
This commit is contained in:
parent
0cff4b3046
commit
d19c3ad47f
@ -212,9 +212,7 @@ js::OnUnknownMethod(JSContext *cx, HandleObject obj, Value idval_, MutableHandle
|
||||
|
||||
TypeScript::MonitorUnknown(cx);
|
||||
|
||||
if (value.get().isPrimitive()) {
|
||||
vp.set(value);
|
||||
} else {
|
||||
if (value.isObject()) {
|
||||
JSObject *obj = NewObjectWithClassProto(cx, &js_NoSuchMethodClass, NULL, NULL);
|
||||
if (!obj)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user