| 89 | } |
| 90 | |
| 91 | static hermes::hbc::CompileFlags getCompileFlags(hermes::OutputFormatKind outputFormat, bool debug) { |
| 92 | hermes::hbc::CompileFlags compileFlags; |
| 93 | compileFlags.format = outputFormat; |
| 94 | compileFlags.strict = true; |
| 95 | compileFlags.includeLibHermes = false; |
| 96 | compileFlags.enableBlockScoping = true; |
| 97 | compileFlags.enableES6Classes = true; |
| 98 | compileFlags.debug = debug; |
| 99 | compileFlags.emitAsyncBreakCheck = true; |
| 100 | |
| 101 | return compileFlags; |
| 102 | } |
| 103 | |
| 104 | Shared<hermes::hbc::BCProviderFromSrc> HermesJavaScriptCompiler::compileToBytecode( |