Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] Fixed a typo.
  • Loading branch information
nirvdrum committed Jan 8, 2015
1 parent 8454ba8 commit b64c383
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -104,12 +104,12 @@ public Object isDefined(VirtualFrame frame) {
notDesignedForCompilation();

if (isGlobal) {
final RubyBasicObject recieverValue = (RubyBasicObject) receiver.execute(frame);
final RubyBasicObject receiverValue = (RubyBasicObject) receiver.execute(frame);

if (readNode.getName().equals("$~") || readNode.getName().equals("$!")) {
return getContext().makeString("global-variable");
} else if (readNode.isSet(recieverValue)) {
if (readNode.execute(recieverValue) == getContext().getCoreLibrary().getNilObject()) {
} else if (readNode.isSet(receiverValue)) {
if (readNode.execute(receiverValue) == getContext().getCoreLibrary().getNilObject()) {
return getContext().getCoreLibrary().getNilObject();
} else {
return getContext().makeString("global-variable");
Expand Down

0 comments on commit b64c383

Please sign in to comment.