diff --git a/internal/engine.cm b/internal/engine.cm index d5ef4522..5eae1b3b 100644 --- a/internal/engine.cm +++ b/internal/engine.cm @@ -62,7 +62,7 @@ function use_core(path) { if (use_cache[cache_key]) return use_cache[cache_key]; - var sym = use_embed(path.replace('/','_')) + var sym = use_embed(path.replaceAll('/','_')) // Core scripts are in packages/core/ var file_path = core_path + '/' + path + MOD_EXT diff --git a/internal/shop.cm b/internal/shop.cm index d81dea01..890e4e49 100644 --- a/internal/shop.cm +++ b/internal/shop.cm @@ -608,7 +608,7 @@ Shop.open_package_dylib = function(pkg) { // If no package context, only check core internal symbols if (!package_context || package_context == 'core') { - path = path.replace('/', '_') + path = path.replaceAll('/', '_') var core_sym = `js_${path}_use` if (os.internal_exists(core_sym)) { return { diff --git a/toml.cm b/toml.cm index eb5e9960..87c7377d 100644 --- a/toml.cm +++ b/toml.cm @@ -195,7 +195,7 @@ function encode_toml(obj) { for (var j = 0; j < section_keys.length; j++) { var sk = section_keys[j] var sv = value[sk] - if (!isa(sv, object)) { + if (!is_object(sv)) { result.push(quote_key(sk) + ' = ' + encode_value(sv)) } }