Skip to content

Commit

Permalink
Treat functions as objects rather than dicts for compiler support
Browse files Browse the repository at this point in the history
  • Loading branch information
David Sheets committed Dec 19, 2010
1 parent a8ef8b6 commit 197c8af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stdlib/support.js
Expand Up @@ -96,7 +96,7 @@ var $in_tail = false;
// tail call
function __m(m, t, args)
{
if ('$oc' in m) {
if (m.$oc >= 0) {
if ($in_tail) {
args.$m = m;
args.$t = t;
Expand All @@ -118,7 +118,7 @@ function __(t, args) { return __m(t, t, args); }
// non tail call
function _m(m, t, args)
{
if ('$oc' in m) {
if (m.$oc >= 0) {
var old_in_tail = $in_tail;
$in_tail = true;
try {
Expand Down

0 comments on commit 197c8af

Please sign in to comment.