1
0
forked from 0ad/0ad

Test \0 in object property names for serializing.

This was SVN commit r17539.
This commit is contained in:
leper 2015-12-22 19:01:18 +00:00
parent 67b7366528
commit 3fd4d07ca1

View File

@ -411,6 +411,11 @@ public:
helper_script_roundtrip("Boolean with props", "var b=new Boolean('true'); b.foo='bar'; b", "(new Boolean(true))");
}
void test_script_objects_properties()
{
helper_script_roundtrip("Object with null in prop name", "({\"foo\\0bar\":1})", "({\'foo\\x00bar\':1})");
}
void test_script_typed_arrays_simple()
{
helper_script_roundtrip("Int8Array",