mirror of
https://github.com/janet-lang/janet
synced 2025-11-06 10:33:03 +00:00
Be more complete with JANET_NO_SOURCEMAPS
This actually removed sourcemaps, not just the top level annotation in bindings.
This commit is contained in:
@@ -629,7 +629,7 @@ JanetFuncDef *janetc_pop_funcdef(JanetCompiler *c) {
|
||||
}
|
||||
memcpy(def->bytecode, c->buffer + scope->bytecode_start, s);
|
||||
janet_v__cnt(c->buffer) = scope->bytecode_start;
|
||||
if (NULL != c->mapbuffer) {
|
||||
if (NULL != c->mapbuffer && c->source) {
|
||||
size_t s = sizeof(JanetSourceMapping) * def->bytecode_length;
|
||||
def->sourcemap = malloc(s);
|
||||
if (NULL == def->sourcemap) {
|
||||
|
||||
Reference in New Issue
Block a user