mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-09-20 03:27:09 +03:00
1c23533c39
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
9 lines
159 B
JavaScript
9 lines
159 B
JavaScript
function hello() {
|
|
return 'Hello';
|
|
}
|
|
function world() {
|
|
return 'world';
|
|
}
|
|
let greeting = hello() + ' ' + world();
|
|
console.log(greeting + ' from std-in!');
|