This JS_ReadObject() flag no longer works for bytecode. The IC opcodes introduced in #120 are patched during execution.
I can see a few solutions:
-
disable ICs when the bytecode buffer should be considered immutable
-
make a copy of the bytecode buffer in JS_ReadFunctionBytecode()
-
remove the flag
I'm leaning towards option 3 so if anyone is using the flag, now would be a good time to speak up. :-)
This
JS_ReadObject()flag no longer works for bytecode. The IC opcodes introduced in #120 are patched during execution.I can see a few solutions:
disable ICs when the bytecode buffer should be considered immutable
make a copy of the bytecode buffer in
JS_ReadFunctionBytecode()remove the flag
I'm leaning towards option 3 so if anyone is using the flag, now would be a good time to speak up. :-)