roman01la / javascript-to-clojurescript

JavaScript to ClojureScript translator
https://roman01la.github.io/javascript-to-clojurescript/
102 stars 6 forks source link

a[0]=1; #2

Closed zaoqi closed 5 years ago

zaoqi commented 5 years ago
var a=[];
a[0]=1;
(def a #js [])

(set! (aget a 0) 1)

cljs.core.ExceptionInfo@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:2073:47
cljs.core.ex_info.cljs$core$IFn$_invoke$arity$3@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:2076:72
cljs.core.ex_info@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:2075:177
cljs.analyzer.error.cljs$core$IFn$_invoke$arity$3@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:2653:92
cljs.analyzer.error@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:2652:203
cljs.analyzer.error.cljs$core$IFn$_invoke$arity$2@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:2652:479
cljs.analyzer.error@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:2652:112
@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:2952:105
g@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:1998:213
a@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:2013:361
cljs.analyzer.analyze_seq_STAR_@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:3195:142
cljs.analyzer.analyze_seq_STAR__wrap@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:3195:306
cljs.analyzer.analyze_seq.cljs$core$IFn$_invoke$arity$4@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:3199:446
cljs.analyzer.analyze_seq@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:3196:214
cljs.analyzer.analyze_form@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:3235:243
cljs.analyzer.analyze_STAR_@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:3238:360
cljs.analyzer.analyze.cljs$core$IFn$_invoke$arity$4@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:3242:275
cljs.analyzer.analyze@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:3239:295
x/I<@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:13022:34
x@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:13022:232
x/</<@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:13029:167
cljs.core.trampoline.cljs$core$IFn$_invoke$arity$1@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:1944:144
cljs.core.trampoline.cljs$core$IFn$_invoke$arity$variadic@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:1944:289
cljs.core.trampoline@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:1943:302
cljs.js.compile_str_STAR_@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:13015:353
cljs.js.compile_str.cljs$core$IFn$_invoke$arity$5@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:13035:34
cljs.js.compile_str@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:13032:313
j2c.core.evalExpr@https://roman01la.github.io/javascript-to-clojurescript/compiler.js:13089:60
handleJSChange@webpack:///./src/ui.js?:92:14
debounce/</id<@webpack:///./src/ui.js?:72:7
roman01la commented 5 years ago

fixed in e7199d2