check resolve op for null before trying to use it
git-svn-id: svn://10.0.0.236/trunk@46936 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d3f6bf2cee
commit
98e4226ee2
@ -1480,7 +1480,7 @@ js_LookupProperty(JSContext *cx, JSObject *obj, jsid id, JSObject **objp,
|
||||
if (!sym) {
|
||||
clasp = LOCKED_OBJ_GET_CLASS(obj);
|
||||
resolve = clasp->resolve;
|
||||
if (resolve != JS_ResolveStub) {
|
||||
if (resolve && resolve != JS_ResolveStub) {
|
||||
if (clasp->flags & JSCLASS_NEW_RESOLVE) {
|
||||
newresolve = (JSNewResolveOp)resolve;
|
||||
flags = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user