Skip to content

[interop] foreign null objects not handled correctly as falsy values #1902

@fniephaus

Description

@fniephaus

Repro:

$ polyglot --jvm --shell
GraalVM MultiLanguage Shell 19.3.0
  Python version 3.7.4
  Ruby version 2.6.2
ruby> if nil; puts "No!!" end
nil
ruby> if Polyglot.eval('python', 'None'); puts "No!!!" end
No!!! # not expected!
nil
ruby> Polyglot.eval('python', 'None').nil?
true

Metadata

Metadata

Assignees

Labels

polyglotUses multiple Truffle languages or host interop

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions