Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Treat functions as objects rather than dicts for compiler support

  • Loading branch information...
commit 197c8af29cffc8a1e3a6bc36ad45c1baa9d20b59 1 parent a8ef8b6
@dsheets authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/stdlib/support.js
View
4 src/stdlib/support.js
@@ -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;
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.