Hi,
According to this document:
https://developers.google.com/native-client/devguide/coding/message-system, native client uses postMessage to communicate with JavaScript.
PostMessage is one of the ways (described in Dart in Action), that Dart itself communicates with JavaScript, so the same principal would also apply to NaCli.