prepack/test/std-in/StdIn.js
Sangboak Lee 1c23533c39 Change processSerializedCode func to receive error as 1st arg
Summary:
Since example code of [How to run Prepack](https://github.com/facebook/prepack#how-to-run-prepack) doesn't work(https://github.com/facebook/prepack/issues/781 )
I fixed `processSerializedCode` function to handle error as 1st argument
which follows 'error first callback' convention.
And to verify the changes I've added test code for the case of `StdIn`
Closes https://github.com/facebook/prepack/pull/784

Differential Revision: D5375275

Pulled By: NTillmann

fbshipit-source-id: ea85d0f30db4305aa7fcb5b69bf28f5998a84962
2017-07-06 12:39:48 -07:00

9 lines
159 B
JavaScript

function hello() {
return 'Hello';
}
function world() {
return 'world';
}
let greeting = hello() + ' ' + world();
console.log(greeting + ' from std-in!');