diff --git a/lib/js/runtime.sx b/lib/js/runtime.sx index 4da7e64d..3d2bb68d 100644 --- a/lib/js/runtime.sx +++ b/lib/js/runtime.sx @@ -19,7 +19,7 @@ ;; ── Type predicates ─────────────────────────────────────────────── -(define js-max-value-approx (fn () (js-max-value-loop 1 1000))) +(define js-max-value-approx (fn () (js-max-value-loop 1 2000))) ;; ── Boolean coercion (ToBoolean) ────────────────────────────────── @@ -372,7 +372,7 @@ ((not (js-undefined? m)) (js-call-with-this recv m args)) ((and (js-function? recv) (js-function-method? key)) (js-invoke-function-method recv key args)) - ((and (js-function? recv) (js-object-builtin-method? key)) + ((and (js-function? recv) (not (= (type-of recv) "dict")) (js-object-builtin-method? key)) (js-invoke-function-objproto recv key args)) ((and (= (type-of recv) "dict") (js-object-builtin-method? key)) (js-invoke-object-method recv key args))