|
| 1 | +// js-beautify v1.8.8 |
| 2 | +// ---------------------------------------------------------------------------------------------------------- |
| 3 | +// COMPILER CONFIG: |
| 4 | +// arena/issue_21.cljs [core] |
| 5 | +// {:elide-asserts true, |
| 6 | +// :external-config |
| 7 | +// #:devtools{:config {:silence-optimizations-warning true}}, |
| 8 | +// :main oops.arena.issue-21, |
| 9 | +// :optimizations :advanced, |
| 10 | +// :output-dir "test/resources/.compiled/issue-21-core/_workdir", |
| 11 | +// :output-to "test/resources/.compiled/issue-21-core/main.js", |
| 12 | +// :pseudo-names true} |
| 13 | +// ---------------------------------------------------------------------------------------------------------- |
| 14 | + |
| 15 | +// SNIPPET #1: |
| 16 | +// (testing "exercise oget with *warn-on-infer* enabled" |
| 17 | +// (oget js/document :foo)) |
| 18 | +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 19 | + |
| 20 | +// SNIPPET #2: |
| 21 | +// (testing "exercise oset! with *warn-on-infer* enabled" |
| 22 | +// (oset! js/document :test-issue-21 "foo")) |
| 23 | +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 24 | + |
| 25 | +document["test-issue-21"] = "foo"; |
| 26 | + |
| 27 | +// SNIPPET #3: |
| 28 | +// (testing "exercise ocall! with *warn-on-infer* enabled" |
| 29 | +// (ocall! js/document :getElementById "foo")) |
| 30 | +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 31 | + |
| 32 | +var target_obj_1 = document, |
| 33 | + call_info_1 = [target_obj_1, target_obj_1.getElementById], |
| 34 | + fn_1 = call_info_1[1]; |
| 35 | +null != fn_1 && fn_1.call(call_info_1[0], "foo"); |
| 36 | + |
| 37 | +// SNIPPET #4: |
| 38 | +// (testing "exercise oapply! with *warn-on-infer* enabled" |
| 39 | +// (oapply! js/document :getElementById ["foo"])) |
| 40 | +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 41 | + |
| 42 | +var target_obj_2 = document, |
| 43 | + call_info_2 = [target_obj_2, target_obj_2.getElementById], |
| 44 | + fn_2 = call_info_2[1]; |
| 45 | +null != fn_2 && fn_2.apply(call_info_2[0], oops.helpers.to_native_array()); |
0 commit comments