Skip to content

Warnings with :checked-arrays :warn #14

@kamituel

Description

@kamituel

Compiling an app that uses cljs-oops with the latest ClojureScript (1.9.946) with :checked-arrays :warn compiler option, the following warnings are printed:

WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [nil string] instead (consider goog.object/get for object access) at line 10 resources/public/js/build/oops/helpers.cljs
WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [nil string] instead (consider goog.object/get for object access) at line 20 resources/public/js/build/oops/helpers.cljs
WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [nil string] instead (consider goog.object/get for object access) at line 28 resources/public/js/build/oops/core.cljs
WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [any string] instead (consider goog.object/get for object access) at line 28 resources/public/js/build/oops/core.cljs
WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [any string] instead (consider goog.object/get for object access) at line 28 resources/public/js/build/oops/core.cljs
WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [js string] instead (consider goog.object/get for object access) at line 28 resources/public/js/build/oops/core.cljs
WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [nil string] instead (consider goog.object/get for object access) at line 28 resources/public/js/build/oops/core.cljs
WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [any string] instead (consider goog.object/get for object access) at line 28 resources/public/js/build/oops/core.cljs
WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [any string] instead (consider goog.object/get for object access) at line 28 resources/public/js/build/oops/core.cljs
WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [nil string] instead (consider goog.object/get for object access) at line 31 resources/public/js/build/oops/core.cljs
WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [any string] instead (consider goog.object/get for object access) at line 31 resources/public/js/build/oops/core.cljs
WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [any string] instead (consider goog.object/get for object access) at line 31 resources/public/js/build/oops/core.cljs
WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [js string] instead (consider goog.object/get for object access) at line 31 resources/public/js/build/oops/core.cljs
WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [nil string] instead (consider goog.object/get for object access) at line 31 resources/public/js/build/oops/core.cljs
WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [any string] instead (consider goog.object/get for object access) at line 31 resources/public/js/build/oops/core.cljs
WARNING: cljs.core/aget, arguments must be an array followed by numeric indices, got [any string] instead (consider goog.object/get for object access) at line 31 resources/public/js/build/oops/core.cljs

Would be nice not to see those warnings :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions