V8 on linux, v8::FunctionCallbackInfo<v8::Value> const& info GetReturnValue().SetNull() does not work

51 views
Skip to first unread message

Pradish

unread,
Feb 1, 2025, 12:13:09 PMFeb 1
to v8-users
V8 Version: 13.1.201.19

static void getProperty(v8::FunctionCallbackInfo<v8::Value> const& info)
{
//Business logic 
//property was not found in the internal list 
//setting the returnvalue to null using
info.GetReturnValue().SetNull();
}

But in the javascript code
var result= process.getProp('some.property');

the result is always undefined on Linux , whereas on Windows it works as expected, that is it returns null.

any idea what might have caused this issue, does anyone think this is an issue with V8 on RedHat Linux. i do not see this behaviour on 13.0.245.18

Thank you for looking into this.

Igor Sheludko

unread,
Feb 3, 2025, 5:17:11 AMFeb 3
to v8-u...@googlegroups.com
Hello!

Such a difference between Linux and Windows is totally unexpected. Could you please file a bug at http://crbug.com/new?component=1456124&template=1943595 and provide instructions for reproducing the issue on our side?

Regards,
Igor

--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/v8-users/90ca10d1-1725-4237-8397-ed88abafb5ffn%40googlegroups.com.


--

Igor Sheludko

Software Engineer

ish...@google.com


Google Germany GmbH

Erika-Mann-Straße 33

80636 München


Geschäftsführer: Paul Manicle, Liana Sebastian

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg


Diese E-Mail ist vertraulich. Falls sie diese fälschlicherweise erhalten haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, dass die E-Mail an die falsche Person gesendet wurde.

    

This e-mail is confidential. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to the wrong person.




Pradish

unread,
Feb 4, 2025, 10:55:40 AMFeb 4
to v8-u...@googlegroups.com
Thanks Igor for the reply.

i rebuilt again with the latest version (stable) one v13.3.415.17 and i no longer see the issue.


regards
Pradish


Reply all
Reply to author
Forward
0 new messages