Skip to content

How to make plain function to be visible from within the worker? #9

Description

Hi Frédéric,

At first I would like to say thank you for the greate stuff you provided!

Unfortunately, I have an issue I can't resolve. I'm using the GraniteDS calsses inside worker. Everything works well except one thing. When I try to create org.granite.math.BigDecimal I get this error

[Fault] exception, information=ReferenceError: Error #1065: Variable org.granite.math::assert is not defined.

Due to the code of BigDecimal references to plain function org.granite.math::assert that is somehow not seen. I can't pass this name as extraDeps due to assert has Function type and not Class and defined like this.

package org.granite.math {
function assert(value:Boolean, message:String = null):void {
//...
}
}

Is it possible to somehow make it work?
Thanx in advance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions