flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [FalconJX] extern issue?
Date Sun, 26 Feb 2017 16:36:48 GMT


On 2/25/17, 11:42 PM, "Harbs" <harbs.lists@gmail.com> wrote:

>I have the following in an extern:
>
>/**
> * Convert the given text to a list of Glyph objects.
> * Note that there is no strict one-to-one mapping between characters and
> * glyphs, so the list of returned glyphs can be larger or smaller than
>the
> * length of the given string.
> * @param  {string} s
> * @param  {Object=} options
> * @return {opentype.Glyph[]}
> */
>opentype.Font.prototype.stringToGlyphs = function(s, options) {};
>
>The function returns an array of opentype.Glyph objects.
>
>When I try compile a call to this function, I get the following error (in
>compc):
>"Implicit coercion of a value of type Glyph to an unrelated type Array."
>
>This seems to me like it’s probably a bug.

I'm guessing you first put this code throughout externc?  What is the .as
output?  Has externc handled other typed arrays correctly? Is it supposed
to convert it to a Vector?

-Alex

Mime
View raw message