How to use jsb in plain js module?

How to use jsb in plain js module?
0.0 0

#1

jsb.reflection works well inside a component. Does anyone knows how to use jsb.reflection in a plain js module? What is needed to require? I got message “ReferenceError: jsb is not defined” when try to use it.


#2

My mistake. I should run on a device, not a simulator.