We're updating the issue view to help you get more done. 

Destructuring vector results in stack overflow error

Description

Given this function:

1 2 3 4 5 (defn ^:export rectangle-diff "Returns the un-superposed area of 2 rectangles." [rect1 rect2] (let [[left top right bottom] rect1] left))

Running this in the chrome console returns this:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 coord1 = [[1, 1], [1000, 1000]] [Array[2], Array[2]] coord2 = [[8, 8], [359, 670]] [Array[2], Array[2]] borte.tables.rectangle_diff(coord1, coord2) tables.min.js:17 Uncaught RangeError: Maximum call stack size exceeded at ya (http://localhost:9000/out-adv/borte.min.js:17:893) at ya (http://localhost:9000/out-adv/borte.min.js:17:893) at ya (http://localhost:9000/out-adv/borte.min.js:17:893) at ya (http://localhost:9000/out-adv/borte.min.js:17:893) at ya (http://localhost:9000/out-adv/borte.min.js:17:893) at ya (http://localhost:9000/out-adv/borte.min.js:17:893) at ya (http://localhost:9000/out-adv/borte.min.js:17:893) at ya (http://localhost:9000/out-adv/borte.min.js:17:893) at ya (http://localhost:9000/out-adv/borte.min.js:17:893) at ya (http://localhost:9000/out-adv/borte.min.js:17:893)

This error disappears if I use 0.0-2755

Environment

OS X, Chrome stable.

Status

Assignee

Unassigned

Reporter

import

Labels

Approval

None

Patch

None

Affects versions

0.0-3308

Priority

Major