Merge: Remove niti hacks on NativeString and NativeFile
authorJean Privat <jean@pryen.org>
Tue, 30 Jun 2015 18:06:58 +0000 (14:06 -0400)
committerJean Privat <jean@pryen.org>
Tue, 30 Jun 2015 18:06:58 +0000 (14:06 -0400)
commite997e203b8e7a2afd2f55dc96d9b68a524f19f6a
tree55230ea89780a646a1d792eafe07933a1426d7cb
parent79ff83af579bfec207f8c021a09c439b3e4f9eb3
parent1e8ed86ef7673678bfdc4d1f849e9ce5f67a3fcd
Merge: Remove niti hacks on NativeString and NativeFile

Previously, the interpreter used a FlatBuffer to implement NativeString and a File to implement NativeFile. This caused issues with applications using (mostly) `is_address_null` which could not be implemented correctly with these implementations.

This PR uses a real NativeString and NativeFile to implement the same class. For NativeFile, it is handled by the FFI so removing the old code is enough. For NativeString, many of its methods are intern so they had to be updated.

Pull-Request: #1543
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>