Skip to content

Commit 4b8d6cd

Browse files
author
Eric Lange
committed
Fixed issue #155 on iOS
Object.setPrototypeOf should return the set prototype, not `true` on success per https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf
1 parent ee8a079 commit 4b8d6cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LiquidCore/src/ios/V82JSC/Context.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,9 @@ Local<v8::Context> v8::Context::New(Isolate* isolate, ExtensionConfiguration* ex
412412
}
413413

414414
if (SetPrototypeSkipHidden(info.GetIsolate()->GetCurrentContext(), obj, proto)) {
415-
info.GetReturnValue().Set(True(info.GetIsolate()));
415+
info.GetReturnValue().Set(proto);
416416
} else {
417-
info.GetReturnValue().Set(False(info.GetIsolate()));
417+
info.GetReturnValue().Set(Null(info.GetIsolate()));
418418
}
419419
});
420420
Local<FunctionTemplate> getPrototypeOf = FunctionTemplate::New(

0 commit comments

Comments
 (0)