git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit d42548aec13093f0e30edf69632e67ad56a0cec2

Interface: fix callDataCopy

Alex Beregszaszi committed on 8/17/2016, 6:12:24 PM
Parent: 98b84bb83ad7584f27dafa1f666441f421e0fb44

Files changed

interface.jschanged
tests/interface/callDataCopy.wastchanged
interface.jsView
@@ -143,9 +143,9 @@
143143 * @param {integer} dataOffset the offset in the input data
144144 * @param {integer} length the length of data to copy
145145 */
146146 callDataCopy (offset, dataOffset, length) {
147- const callData = Buffer.from(this.environment.callData.slice(dataOffset, dataOffset + length)).reverse()
147+ const callData = this.environment.callData.slice(dataOffset, dataOffset + length)
148148 this.setMemory(offset, length, callData)
149149 }
150150
151151 /**
tests/interface/callDataCopy.wastView
@@ -8,10 +8,9 @@
88 (func
99 (block
1010 (call_import $callDataCopy (i32.const 0) (i32.const 0) (i32.const 8))
1111
12- ;; FIXME: this should be 0x2065726120756f59
13- (if (i64.eq (i64.load (i32.const 0)) (i64.const 0x596f752061726520))
12+ (if (i64.eq (i64.load (i32.const 0)) (i64.const 0x2065726120756f59))
1413 (return)
1514 )
1615 (unreachable)
1716 )

Built with git-ssb-web