It does few other minor changes like adding ?is_v8 macro, adding Array:unpush/1 and Object:copy_properties_to/1
add ?is_vm/1 macro; add Object:copy_properties_to/2; add Array:unpush/1
Include "error" property when fetching proplist of native error which
is a part of workaround for V8's bug 1595
does copy_properties_to really belong there?
It doesn't have to be there, but it is very useful :) I've replaced at least three instances of lists:foreach over Object:proplist doing Copy:set_value in beamjs with this one.
Can we move it to some "utility module"?
In utility module it would not be as useful, but I get that copy_properties_to in object doesn't fit the way it works in JS. I'll move it
move erlv8_object:copy_properties_to/2 to erlv8_utils:copy_properties/2;
Moved them to erlv8_utils