converter: implement SameObject
Generate idempotent versions of property getter results for attributes marked as
SameObject.Signed-off-by: Gabriel Schulhof gabriel.schulhof@intel.com PR-URL: https://github.com/nodejs/webidl-napi/pull/19 Reviewed-By: Kai Ninomiya kainino@chromium.org
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
WebIDL-NAPI
This project aims to provide a compiler that consumes a WebIDL file and produces a C++ source file containing code that defines the interfaces specified in the WebIDL file using N-API. It is intended to be used as part of a project’s build infrastructure.
Installation
Since this is an npm package it requires a version of Node.js to run.
To install, run
Afterwards, the command
webidl-napiwill become available from the command line.Usage
Once installed, please run
to see a full list of options. At its most basic, running
will process file
input.idland create fileoutput.cccontaining the bindings described byinput.idl.