servo / rust-mozjs

DEPRECATED - moved to servo/mozjs instead.
Mozilla Public License 2.0
293 stars 122 forks source link

Forbid rooted! outside of unsafe code #293

Open nox opened 8 years ago

nox commented 8 years ago

Its cx argument is a raw pointer and thus the whole operation is unsafe.

bytesnail commented 5 years ago

This problem should have been solved, now the macro rooted! is only allowed in unsafe blocks, otherwise you will get a compilation error.