1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 * Custom bindings for the mojoPrivate API.
9 let binding = require('binding').Binding.create('mojoPrivate');
11 binding.registerCustomHook(function(bindingsAPI) {
12 let apiFunctions = bindingsAPI.apiFunctions;
14 apiFunctions.setHandleRequest('define', function(name, deps, factory) {
15 define(name, deps || [], factory);
18 apiFunctions.setHandleRequest('requireAsync', function(moduleName) {
19 return requireAsync(moduleName);
23 exports.binding = binding.generate();