esrille / escudo

The Escudo Web Browser
Apache License 2.0
68 stars 13 forks source link

Variable length array of non-POD element type is not valid #33

Closed Constellation closed 11 years ago

Constellation commented 11 years ago

src/js/bridge.cpp (NativeClass::staticOperation, NativeClass::constructor): Change invalid variadic arrays to alloca based implementation src/v8/bridgeV8.cpp (NativeClass::staticOperation, NativeClass::constructor, ProxyObject::message_): Change invalid variadic arrays to alloca based implementation

Because vairable length array of non-POD element type is ill-formed, change invalid variadic arrays to alloca based implementation. And because alloca memory is not initialized with Any(Undefined) (memory is 0-filled), uninitialized_fill based initialization is also necessary.

ShikiOkasaka commented 11 years ago

:+1: Merged at 78f5edc63cea51f207b9b499c30cade6b969622d, and then slightly modified at 907126656d4c2855dc244aad519b82328d3730f2