You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/12/17 11:32:12 UTC

[GitHub] tomasszabo opened a new issue #80: Method nativeEvalAndFetch(function(){%@}) missing in exec.js

tomasszabo opened a new issue #80: Method nativeEvalAndFetch(function(){%@}) missing in exec.js
URL: https://github.com/apache/cordova-osx/issues/80
 
 
   In a Cordova plugin for OSX platform I'm calling following method on `CDVCommandDelegate`
   
       - (void) evalJs:(NSString*) js
   
   which in fact executes Javascript:
   
       cordova.require('cordova/exec').nativeEvalAndFetch(...)
   
   Problem is that method `nativeEvalAndFetch` is not defined in `cordova/exec` module (defined in `exec.js`) and therefore not available in runtime.
   
   I've manually added following implementation
   
       OSXExec.nativeEvalAndFetch = function(func) {
           func();
       };
   
   however, I'm not sure if it's fully compatible with OSX Cordova platform implementation.
   
   Method `nativeEvalAndFetch` exists in `exec.js` of iOS Cordova platform implementation, so possibly this is a portation problem.
   
   ---
   
   Node version: v10.8.0
   Cordova version: 8.1.1
   `<engine name="osx" spec="^4.0.2" />`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org