pict 1.0.187 → 1.0.188

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2032,7 +2032,10 @@ return false;}// Now see if the function has arguments.
2032
2032
  var tmpFunctionArguments=_MockFable.DataFormat.stringGetSegments(_MockFable.DataFormat.stringGetEnclosureValueByIndex(pAddress.substring(tmpFunctionAddress.length),0),',');if(tmpFunctionArguments.length==0||tmpFunctionArguments[0]==''){// No arguments... just call the function (bound to the scope of the object it is contained withing)
2033
2033
  return pObject[tmpFunctionAddress].apply(pObject);}else{var tmpArgumentValues=[];var _tmpRootObject2=typeof pRootObject=='undefined'?pObject:pRootObject;// Now get the value for each argument
2034
2034
  for(var _i19=0;_i19<tmpFunctionArguments.length;_i19++){// Resolve the values for each subsequent entry
2035
- tmpArgumentValues.push(this.getValueAtAddress(_tmpRootObject2,tmpFunctionArguments[_i19]));}return pObject[tmpFunctionAddress].apply(pObject,tmpArgumentValues);}}// Boxed elements look like this:
2035
+ // Check if the argument value is a string literal or a reference to an address
2036
+ if(tmpFunctionArguments[_i19].length>=2&&(tmpFunctionArguments[_i19].charAt(0)=='"'||tmpFunctionArguments[_i19].charAt(0)=="'"||tmpFunctionArguments[_i19].charAt(0)=="`")&&(tmpFunctionArguments[_i19].charAt(tmpFunctionArguments[_i19].length-1)=='"'||tmpFunctionArguments[_i19].charAt(tmpFunctionArguments[_i19].length-1)=="'"||tmpFunctionArguments[_i19].charAt(tmpFunctionArguments[_i19].length-1)=="`")){// This is a string literal
2037
+ tmpArgumentValues.push(tmpFunctionArguments[_i19].substring(1,tmpFunctionArguments[_i19].length-1));}else{// This is a hash address
2038
+ tmpArgumentValues.push(this.getValueAtAddress(_tmpRootObject2,tmpFunctionArguments[_i19]));}}return pObject[tmpFunctionAddress].apply(pObject,tmpArgumentValues);}}// Boxed elements look like this:
2036
2039
  // MyValues[10]
2037
2040
  // MyValues['Name']
2038
2041
  // MyValues["Age"]
@@ -2092,7 +2095,10 @@ return false;}// Now see if the function has arguments.
2092
2095
  var _tmpFunctionArguments=_MockFable.DataFormat.stringGetSegments(_MockFable.DataFormat.stringGetEnclosureValueByIndex(tmpSubObjectName.substring(_tmpFunctionAddress2.length),0),',');if(_tmpFunctionArguments.length==0||_tmpFunctionArguments[0]==''){// No arguments... just call the function (bound to the scope of the object it is contained withing)
2093
2096
  return this.getValueAtAddress(pObject[_tmpFunctionAddress2].apply(pObject),tmpNewAddress,tmpParentAddress,tmpRootObject);}else{var _tmpArgumentValues=[];var _tmpRootObject3=typeof pRootObject=='undefined'?pObject:pRootObject;// Now get the value for each argument
2094
2097
  for(var _i21=0;_i21<_tmpFunctionArguments.length;_i21++){// Resolve the values for each subsequent entry
2095
- _tmpArgumentValues.push(this.getValueAtAddress(_tmpRootObject3,_tmpFunctionArguments[_i21]));}return this.getValueAtAddress(pObject[_tmpFunctionAddress2].apply(pObject,_tmpArgumentValues),tmpNewAddress,tmpParentAddress,_tmpRootObject3);}}// Boxed elements look like this:
2098
+ // Check if the argument value is a string literal or a reference to an address
2099
+ if(_tmpFunctionArguments[_i21].length>=2&&(_tmpFunctionArguments[_i21].charAt(0)=='"'||_tmpFunctionArguments[_i21].charAt(0)=="'"||_tmpFunctionArguments[_i21].charAt(0)=="`")&&(_tmpFunctionArguments[_i21].charAt(_tmpFunctionArguments[_i21].length-1)=='"'||_tmpFunctionArguments[_i21].charAt(_tmpFunctionArguments[_i21].length-1)=="'"||_tmpFunctionArguments[_i21].charAt(_tmpFunctionArguments[_i21].length-1)=="`")){// This is a string literal
2100
+ _tmpArgumentValues.push(_tmpFunctionArguments[_i21].substring(1,_tmpFunctionArguments[_i21].length-1));}else{// This is a hash address
2101
+ _tmpArgumentValues.push(this.getValueAtAddress(_tmpRootObject3,_tmpFunctionArguments[_i21]));}}return this.getValueAtAddress(pObject[_tmpFunctionAddress2].apply(pObject,_tmpArgumentValues),tmpNewAddress,tmpParentAddress,_tmpRootObject3);}}// Boxed elements look like this:
2096
2102
  // MyValues[42]
2097
2103
  // MyValues['Color']
2098
2104
  // MyValues["Weight"]