You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2022/06/15 01:29:24 UTC

[royale-asjs] branch develop updated: Make Language.as easier to monkeypatch, if that is ever needed. These changes ensure improved consistency irrespective of whether certain compiler flags (used in framework build) are on or off.

This is an automated email from the ASF dual-hosted git repository.

gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new e7f56aa8e7 Make Language.as easier to monkeypatch, if that is ever needed. These changes ensure improved consistency irrespective of whether certain compiler flags (used in framework build) are on or off.
e7f56aa8e7 is described below

commit e7f56aa8e7c5230c95a9533e769baa02cd5ac4e4
Author: greg-dove <gr...@gmail.com>
AuthorDate: Wed Jun 15 13:29:08 2022 +1200

    Make Language.as easier to monkeypatch, if that is ever needed. These changes ensure improved consistency irrespective of whether certain compiler flags (used in framework build) are on or off.
---
 .../Language/src/main/royale/org/apache/royale/utils/Language.as  | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as b/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as
index 1ea89d82fe..05f32e90d2 100644
--- a/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as
+++ b/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as
@@ -752,6 +752,7 @@ package org.apache.royale.utils
          * This could be used to create and return a default Vector instance
          *
          * @royaleignorecoercion Array
+         * @royalesuppressresolveuncertain
          * no export (allow dead code elimination if never used):
          */
         public static function Vector(size:int = 0, baseType:String = null, fixed:Boolean = false):*
@@ -933,6 +934,7 @@ class VectorSupport {
     
     /**
      * @royaleignorecoercion Function
+     * @royalesuppressresolveuncertain
      */
     public static function arrayVector(arr:Array, size:int, basetype:String,fixed:Boolean , tag:Object, construct:Boolean = true):Array
     {
@@ -962,6 +964,7 @@ class VectorSupport {
     /**
      * @royalesuppressclosure
      * @royalesuppresscompleximplicitcoercion true
+     * @royalesuppressresolveuncertain
      */    
     public static function tagVectorArray(array:Array, elementType:String, fixed:Boolean, inst:Object):Array
     {
@@ -1018,10 +1021,11 @@ class VectorSupport {
     
     /**
      * Fills the array from a start point (defaults to zero) to its end with the specified value
+     * @royaleignorecoercion Array
      */
     private static function array_fill(arr:Array, value:Object, start:uint):Array{
         if (arr['fill']) {
-            return arr['fill'](value, start);
+            return arr['fill'](value, start) as Array;
         } else {
             //IE11 support
             var i:uint = start>>>0;
@@ -1195,6 +1199,7 @@ class VectorSupport {
     //fixed-length vector-like array overrides
     /**
      * @royaleignorecoercion Array
+     * @royalesuppressresolveuncertain
      */
     public function push(v:*):* {
         var a:Array = Array.prototype.slice.call(arguments) as Array;
@@ -1205,6 +1210,7 @@ class VectorSupport {
     }
     /**
      * @royaleignorecoercion Array
+     * @royalesuppressresolveuncertain
      */
     public function unshift(v:*):* {
         var a:Array = Array.prototype.slice.call(arguments) as Array;