It needs to check something that isn't runnable()
Created attachment 306526 [details] patch
Comment on attachment 306526 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=306526&action=review > Source/JavaScriptCore/wasm/WasmCodeBlock.h:65 > + return false; "don't know" shouldn't be false? Can you use an optional instead?
Comment on attachment 306526 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=306526&action=review >> Source/JavaScriptCore/wasm/WasmCodeBlock.h:65 >> + return false; > > "don't know" shouldn't be false? Can you use an optional instead? I think we should just use a TriState.
Comment on attachment 306526 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=306526&action=review >>> Source/JavaScriptCore/wasm/WasmCodeBlock.h:65 >>> + return false; >> >> "don't know" shouldn't be false? Can you use an optional instead? > > I think we should just use a TriState. Maybe I'll just make the caller do this. Since we just have one caller. if (!codeBlock || (codeBlock->compilationFinished() && !codeBlock->runnable())
Created attachment 306527 [details] patch
Comment on attachment 306527 [details] patch r=me.
landed in: https://trac.webkit.org/changeset/215114/webkit