{"json_modified": "2016-03-28T08:40:00.454483", "uuid": "1aeb7d21-9f0d-41dd-ae6c-9f7eca8c372a", "title": "JS_BufferIsCompilableUnit", "url": "/en-US/docs/Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_BufferIsCompilableUnit", "tags": ["SpiderMonkey", "JSAPI Reference"], "translations": [], "modified": "2014-12-14T02:31:11", "label": "JS_BufferIsCompilableUnit", "localization_tags": [], "locale": "en-US", "id": 132153, "last_edit": "2014-12-14T02:22:50", "summary": "Given a buffer, return false
if the buffer might become a valid JavaScript statement with the addition of more lines. Otherwise return true
. The intent is to support interactive compilation - accumulate lines in a buffer until JS_BufferIsCompilableUnit
is true
, then pass it to the compiler.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Description", "title": "Description"}, {"id": "See_Also", "title": "See Also"}], "slug": "Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_BufferIsCompilableUnit", "review_tags": ["technical"]}